drm/radeon: fix the crash in benchmark functions
authorIlija Hadzic <ilijahadzic@gmail.com>
Fri, 30 Jan 2015 05:38:43 +0000 (00:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Feb 2015 07:00:54 +0000 (15:00 +0800)
commit624ddd1be9fcd6fd30ce5563e87dfd27ab920a68
tree320c77ad16ed647612b54dc20b48ebf4442c13a5
parent7530584f8c7d2ded28dd72e0dbf17c2bff085107
drm/radeon: fix the crash in benchmark functions

commit 3f5e1b4f58b7b6480cccff4bf965436102db4346 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 destination 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_benchmark.c