]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/imagination: Free pvr_vm_gpuva after unlink
authorMatt Coster <matt.coster@imgtec.com>
Mon, 2 Sep 2024 08:48:48 +0000 (09:48 +0100)
committerMatt Coster <matt.coster@imgtec.com>
Mon, 2 Sep 2024 08:48:48 +0000 (09:48 +0100)
commit3f6b2f60b4631cd0c368da6a1587ab55a696164d
treed7152bdd1f9d73b9730db292e8eb50bc543c5268
parentf33b9ab0495b7e3bb01bf6d76045f078e20ada65
drm/imagination: Free pvr_vm_gpuva after unlink

This caused a measurable memory leak. Although the individual
allocations are small, the leaks occurs in a high-usage codepath
(remapping or unmapping device memory) so they add up quickly.

Fixes: ff5f643de0bf ("drm/imagination: Add GEM and VM related code")
Cc: stable@vger.kernel.org
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Link: https://patchwork.freedesktop.org/patch/msgid/35867394-d8ce-4698-a8fd-919a018f1583@imgtec.com
Signed-off-by: Matt Coster <matt.coster@imgtec.com>
drivers/gpu/drm/imagination/pvr_vm.c