etnaviv: Fix assert when try to accumulate an invalid fd
authorMarco Felsch <m.felsch@pengutronix.de>
Thu, 5 Dec 2019 16:04:11 +0000 (17:04 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jan 2020 17:40:10 +0000 (17:40 +0000)
commit1607123ae7504ead15129b2a90506811d9e26b6d
treea2069d4f4532be742ec30bed155acfac93fa9017
parent22217f24ec927e90d6bac1921cc288797ab54d03
etnaviv: Fix assert when try to accumulate an invalid fd

Check if it is a valid fd before merging it to the context's fd.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3381>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3381>
src/gallium/drivers/etnaviv/etnaviv_fence.c