drm/radeon: fix rare segfault
authorJerome Glisse <jglisse@redhat.com>
Mon, 2 Jul 2012 16:40:54 +0000 (12:40 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 3 Jul 2012 10:17:09 +0000 (11:17 +0100)
commit1ef5325b238676c7a16bcd374250b07e77682736
tree085db47a47284f08954b1161c19b75c9ac14f9c9
parentc21b328ea8c7c71cd2daf50557db440bbaa7ef55
drm/radeon: fix rare segfault

In gem idle/busy ioctl the radeon object was derefenced after
drm_gem_object_unreference_unlocked which in case the object
have been destroyed lead to use of a possibly free pointer with
possibly wrong data.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_gem.c