mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
drm/i915: Fix memory leak in query_perf_config_list()
When krealloc() fails, free the original oa_config_ids before returning to avoid a memory leak. Fixes:4f6ccc74a8("drm/i915: add support for perf configuration queries") Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Cc: <stable@vger.kernel.org> # v5.5+ Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com> Link: https://patch.msgid.link/20260823205028.178597-2-thorsten.blum@linux.dev (cherry picked from commit9977e9d84f) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
a894f97318
commit
cbd3dafc20
1 changed files with 3 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue