mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
__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]