mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 02:50:35 +01:00
iris: remove redundant check
list_del dereferences both next and prev, so if only one of them could
be NULL we would get crashes already.
Should fix "Dereference after null check" reported by Coverity.
Code was added in: 64b73b770b ("iris: Fix bad external BO hash table and zombie list interactions")
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8110>
This commit is contained in:
parent
bec3463977
commit
8f438f646c
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ find_and_ref_external_bo(struct hash_table *ht, unsigned int key)
|
|||
* we hadn't yet closed it...and then reimported the same BO. If it
|
||||
* is, then remove it since it's now been resurrected.
|
||||
*/
|
||||
if (bo->head.prev || bo->head.next)
|
||||
if (bo->head.next)
|
||||
list_del(&bo->head);
|
||||
|
||||
iris_bo_reference(bo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue