drm/radeon: check return value of radeon_ring_lock
authorPan Bian <bianpan2016@163.com>
Mon, 24 Apr 2017 08:38:05 +0000 (16:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Apr 2017 21:33:02 +0000 (17:33 -0400)
commitc346fb74fb646352018800375c327ac35880b7e0
tree4c73a29de803f0ddfeea5dda9909a7b6f86599fa
parent91faed9ee150fb07b5b0e6601b96219a6c74301f
drm/radeon: check return value of radeon_ring_lock

Function radeon_ring_lock() returns an errno on failure, and its return
value should be validated. However, in functions r420_cp_errata_init()
and r420_cp_errata_fini(), its return value is not checked. This patch
adds the checks.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/r420.c