diff options
| author | Kaushlendra Kumar <kaushlendra.kumar@intel.com> | 2026-01-05 08:48:20 +0530 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-01-05 13:14:50 +0000 |
| commit | f3f380ce6b3d5c9805c7e0b3d5bc28d9ec41e2e8 (patch) | |
| tree | ef4f65b214d254351bb983ad3dfc9bd32f3a88c2 /tools/perf/scripts/python | |
| parent | 9ace4753a5202b02191d54e9fdf7f9e3d02b85eb (diff) | |
regmap: maple: free entry on mas_store_gfp() failure
regcache_maple_write() allocates a new block ('entry') to merge
adjacent ranges and then stores it with mas_store_gfp().
When mas_store_gfp() fails, the new 'entry' remains allocated and
is never freed, leaking memory.
Free 'entry' on the failure path; on success continue freeing the
replaced neighbor blocks ('lower', 'upper').
Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Link: https://patch.msgid.link/20260105031820.260119-1-kaushlendra.kumar@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
