Fixed possible NULL pointer dereference in os_alloc_reset().
Fixed possible NULL pointer dereference in os_alloc_reset().

Change-Id: I7c7a7c77b3a34d210c837e48bd38dd094a22e273

01org/intel-cmt-cat,01org/intel-cmt-cat,01org/intel-cmt-cat