drm: Potential use-after-free on error path.
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Feb 2009 11:31:41 +0000 (11:31 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Feb 2009 02:21:08 +0000 (12:21 +1000)
commitad45aa9e6e010283bbd8cf0c6309866233e113f2
tree445135f1c9a8e270e6d350404d6ecf57b8f778ef
parent005568be363b90c9333c3bcbc1e7a53922816322
drm: Potential use-after-free on error path.

Remove the member from the hash table before we free the structure!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/drm_gem.c