i915/sync: Don't crash when deleting sync object
authorChad Versace <chad.versace@intel.com>
Wed, 6 May 2015 02:05:29 +0000 (19:05 -0700)
committerChad Versace <chad.versace@intel.com>
Thu, 7 May 2015 15:11:21 +0000 (08:11 -0700)
commit9cf9a2dec5b3fe3aad878b8ab99d50fbd51e1b9c
treec388e356e789ae488b6790fd4ce6d437e3504031
parenta93ab73a074e0c25ff5ceca7fc1141a9bea82c8f
i915/sync: Don't crash when deleting sync object

Don't pass NULL to drm_intel_bo_unreference(). It doesn't like that.

Bug found by code inspection.

Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i915/intel_syncobj.c