]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: cleanup on error in amdgpu_cs_ioctl()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 Nov 2015 13:25:09 +0000 (16:25 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Nov 2015 17:29:21 +0000 (12:29 -0500)
commit88068acfd57c137601263fabee6b28a986e96691
tree8671c0bb0272a75a644e8ae0b83dbe70d60778b2
parentab75f3c8921cd3ee6e0cd242a21e6b3a6232cc85
drm/amdgpu: cleanup on error in amdgpu_cs_ioctl()

We recently changed the locking in this function and now there is a
missing unlock on error.  Also there are some other resources that we
should probably release as well...

Fixes: 3d21d1462167 ('drm/amdgpu: fix the broken vm->mutex V2')
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c