etnaviv: prevent deadlock in error path
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 13 Sep 2017 14:08:19 +0000 (16:08 +0200)
committerEric Engestrom <eric.engestrom@imgtec.com>
Thu, 14 Sep 2017 09:36:07 +0000 (10:36 +0100)
commit6dca9387d20204898f9e831d59b725d062513fd0
tree66b71c451686200ca66181ca993c901dfe313fb1
parentd55d0804f9e37637d7510f38f97e07a50c6b7baa
etnaviv: prevent deadlock in error path

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 <p.zabel@pengutronix.de>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
etnaviv/etnaviv_bo.c