]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: fix the crash in benchmark functions
authorIlija Hadzic <ilijahadzic@gmail.com>
Fri, 30 Jan 2015 05:38:43 +0000 (00:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Feb 2015 16:39:35 +0000 (11:39 -0500)
commit0becf56c8f5d2a727e5849f1ee6039b1f2e6f833
treee8154b412d694c84538458ec8c8e1ca83efb7ffa
parent4b8cf151ada85795f578dcadfe793aba57575cf8
drm/radeon: fix the crash in benchmark functions

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

Cc: stable@vger.kernel.org
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>
drivers/gpu/drm/radeon/radeon_benchmark.c