drm/radeon: fix oops in ttm reserve when pageflipping (v2)
authorDave Airlie <airlied@redhat.com>
Sun, 29 May 2011 07:48:32 +0000 (17:48 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 2 Jun 2011 00:46:41 +0000 (10:46 +1000)
commit498c555f56a02ec1059bc150cde84411ba0ac010
tree645304a165513aeb4b21f3522a2b2c708c277e03
parent2f2f96d1ea72e6602ae440ac2867a6004edb37a1
drm/radeon: fix oops in ttm reserve when pageflipping (v2)

We need to take a reference to this object, pinning doesn't take a reference
so if userspace deletes the object it can disappear even if pinned.

v2: fix error paths to unreference properly also.

should fix:
https://bugzilla.kernel.org/show_bug.cgi?id=32402
and
https://bugzilla.redhat.com/show_bug.cgi?id=680651

Acked-By: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_display.c