driver: fix a potential Null reference.
authorZhigang Gong <zhigang.gong@intel.com>
Tue, 17 Jun 2014 03:16:55 +0000 (11:16 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Tue, 17 Jun 2014 09:06:55 +0000 (17:06 +0800)
commit473f19bfb1134293c3f827c97cd39cabe82ae1fc
treedcedfc48daf4a2323c83454955517e7fc4621c39
parentfe400a9efd8dff62d304933915d63d63725ad104
driver: fix a potential Null reference.

cl_gpgpu_flush may be called when the batch buffer has been
released. We need to check whether there is a valid buffer
before we really take the following actions.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: He Junyan <junyan.he@inbox.com>
src/intel/intel_gpgpu.c