OSDN Git Service

intel: Add handle to hashtable before freeing along an error path
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Mar 2017 21:00:59 +0000 (21:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Mar 2017 21:03:22 +0000 (21:03 +0000)
commit19c4cfc54918d361f2535aec16650e9f0be667cd
treeb7b54203646ce735728001d4d423a47990ba2440
parent5ee9cb4b4b6964bcd463b0490f3027e6ccfbf45a
intel: Add handle to hashtable before freeing along an error path

drm_intel_gem_bo_free() unconditionally attempts to remove the handle
from the hashtable. This goes horribly wrong if we haven't already added
the bo to the hashtable.

Reported-by: Michael Thayer <michael.thayer@oracle.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c