drm/amdgpu: fix amdgpu_mn_unlock() in the CS error path
authorChristian König <christian.koenig@amd.com>
Mon, 3 Sep 2018 08:51:51 +0000 (10:51 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Sep 2018 03:40:24 +0000 (22:40 -0500)
commit0a53b69cce846b42adf03ccee49ae0a37a731c20
tree99fe98c5a834c05ebae51b74b76c9b5374541551
parentc12a2ee5d002e39a387001cdb5065b560568b4f5
drm/amdgpu: fix amdgpu_mn_unlock() in the CS error path

Avoid unlocking a lock we never locked.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c