[PATCH libdrm 1/2] drm: fix missing mutex unlock before return

Alex Deucher alexdeucher at gmail.com
Mon Aug 7 19:47:30 UTC 2017


On Mon, Aug 7, 2017 at 10:46 AM, Christian König
<deathsimple at vodafone.de> wrote:
> Am 07.08.2017 um 16:35 schrieb Monk Liu:
>>
>> From: Monk Liu <monk.liu at amd.com>
>>
>> Change-Id: I377dde976648d53bc9a3a2d5ba294c284910b109
>> Signed-off-by: Monk Liu <monk.liu at amd.com>
>
>
> Reviewed-by: Christian König <christian.koenig at amd.com> for this one.

Applied upstream.  thanks!

Alex

>
>> ---
>>   amdgpu/amdgpu_bo.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c
>> index ec99488..07eb743 100644
>> --- a/amdgpu/amdgpu_bo.c
>> +++ b/amdgpu/amdgpu_bo.c
>> @@ -297,6 +297,7 @@ int amdgpu_bo_import(amdgpu_device_handle dev,
>>                 /* Get a KMS handle. */
>>                 r = drmPrimeFDToHandle(dev->fd, shared_handle, &handle);
>>                 if (r) {
>> +                       pthread_mutex_unlock(&dev->bo_table_mutex);
>>                         return r;
>>                 }
>>
>
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list