]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/radeon: fix the crash in test functions
authorIlija Hadzic <ilijahadzic@gmail.com>
Fri, 30 Jan 2015 05:38:44 +0000 (00:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Feb 2015 07:00:54 +0000 (15:00 +0800)
commit83108f22385e9f34761dc3a0c77bdc985a467e77
treed5c5d61a1892741c4af337c5c7e9c13a036b82c1
parent624ddd1be9fcd6fd30ce5563e87dfd27ab920a68
drm/radeon: fix the crash in test functions

commit 92b712b739811e4aa7c0e1af339d0098989ea024 upstream.

radeon_copy_dma and radeon_copy_blit must be called with
a valid reservation object. Otherwise a crash will be provoked.
We borrow the object from vram BO.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=88464

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_test.c