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

Christian König deathsimple at vodafone.de
Mon Aug 7 14:46:49 UTC 2017


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.

> ---
>   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;
>   		}
>   




More information about the amd-gfx mailing list