Files
erofs-linux/drivers/gpu/host1x
Mikko Perttunen 266cddf7bd gpu: host1x: Fix use-after-free in host1x_bo_clear_cached_mappings
__host1x_bo_unpin() drops the last reference to the mapping and frees
it, so we can't dereference mapping afterwards. The cache itself
outlives the mapping, so use the cache local variable instead.

Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/linux-tegra/[email protected]/T/#u
Signed-off-by: Mikko Perttunen <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Link: https://patch.msgid.link/[email protected]
2026-07-16 20:26:28 +02:00
..
…
…
…
…
…
…
…
…
…
…
…