Re: [PATCH libdrm v3] etnaviv: prevent deadlock in error path

2017-09-14 Thread Eric Engestrom
On Wednesday, 2017-09-13 16:08:19 +0200, Philipp Zabel wrote: > If drmPrimeFDToHandle fails in etna_bo_from_dmabuf, the function must > not return with the table_lock mutex held. Unlock the mutex in the error > path. > > Based on ceb70a6b1015 ("freedreno: prevent deadlock in error path"). > > Sig

[PATCH libdrm v3] etnaviv: prevent deadlock in error path

2017-09-13 Thread Philipp Zabel
If drmPrimeFDToHandle fails in etna_bo_from_dmabuf, the function must not return with the table_lock mutex held. Unlock the mutex in the error path. Based on ceb70a6b1015 ("freedreno: prevent deadlock in error path"). Signed-off-by: Philipp Zabel Reviewed-by: Eric Engestrom --- v3: fix the comm