]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 3 Aug 2011 19:42:38 +0000 (12:42 -0700)
commit209f2c8170f4a5e96a98c95c0c38489f24eb1858
tree83abf135a7aa95d2a73b2e270a9c6d3bae631849
parentfada75ea2cd00ff6f44adc90ed9e99085f8578d6
drm/radeon: fix oops in ttm reserve when pageflipping (v2)

commit 498c555f56a02ec1059bc150cde84411ba0ac010 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/radeon_display.c