aboutsummaryrefslogtreecommitdiff
path: root/drivers/ras
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>2024-07-11 14:53:32 +0100
committerThomas Zimmermann <tzimmermann@suse.de>2024-07-18 15:49:28 +0200
commit32df4abc44f24dbec239d43e2b26d5768c5d1a78 (patch)
tree01cfbd3c74275239c878d3a9bd99cfeef4f996a7 /drivers/ras
parent0e50fcc20bd87584840266e8004f9064a8985b4f (diff)
drm/v3d: Fix potential memory leak in the performance extension
If fetching of userspace memory fails during the main loop, all drm sync objs looked up until that point will be leaked because of the missing drm_syncobj_put. Fix it by exporting and using a common cleanup helper. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Fixes: bae7cb5d6800 ("drm/v3d: Create a CPU job extension for the reset performance query job") Cc: Maíra Canal <mcanal@igalia.com> Cc: Iago Toral Quiroga <itoral@igalia.com> Cc: stable@vger.kernel.org # v6.8+ Signed-off-by: Maíra Canal <mcanal@igalia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240711135340.84617-4-tursulin@igalia.com (cherry picked from commit 484de39fa5f5b7bd0c5f2e2c5265167250ef7501) Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Diffstat (limited to 'drivers/ras')
0 files changed, 0 insertions, 0 deletions