Skip to content

lima: remove its hash table entry when invalidating a resource

Icenowy Zheng requested to merge icenowy/mesa:lima-invalidate-fix into master

When a resouce is already invalidated, its hash table entry becomes useless. In addition, the lima_job_free() function won't remove the hash table entry for invalidated resource. So the hash entry should be removed when invalidating the resource, otherwise bogus hash entry might be left in the table, and when the resource is reused in another job, the code will find the freed job when invalidating and thus result in crash.

60f9b458 ("lima: implement invalidate_resource()") Signed-off-by: Icenowy Zheng icenowy@aosc.io

Merge request reports