drm/radeon: avoid segfault on device open when accel is not working.
authorJérôme Glisse <jglisse@redhat.com>
Wed, 7 May 2014 20:35:24 +0000 (16:35 -0400)
committerChristian König <christian.koenig@amd.com>
Tue, 20 May 2014 12:42:06 +0000 (14:42 +0200)
commit24f47acc78b0ab5e2201f859fe1f693ae90c7c83
tree834a08f452e00713beb57ddedf22a212314ab219
parent74ad54f249de39bc040cce7237b1b854a9c6f0ad
drm/radeon: avoid segfault on device open when accel is not working.

When accel is not working on device with virtual address space radeon
segfault because the ib buffer is NULL and trying to map it inside the
virtual address space trigger segfault. This patch only map the ib
buffer if accel is working.

Cc: <stable@vger.kernel.org>
Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/radeon/radeon_kms.c