diff options
| author | 2026-06-24 03:06:35 -0700 | |
|---|---|---|
| committer | 2026-07-06 18:07:39 -0500 | |
| commit | 9119ceb76e987c2ec2b549ea100e3268ce3a1c7c (patch) | |
| tree | 06cd470a7a4f9e1be21bc2c902a1840860c12948 /tools/lib/python | |
| parent | Linux 7.2-rc1 (diff) | |
firmware: stratix10-svc: fix memory leaks and list corruption bugs
Fix a memory leak when gen_pool_alloc() fails by freeing pmem on the error
path. Switch pmem allocation from devm_kzalloc() to kzalloc() with
explicit kfree() in the free path to match its list-managed lifetime.
Remove the erroneous list_del(&svc_data_mem) which corrupted the list head
on failed lookups.
Fixes: 7ca5ce896524 ("firmware: add Intel Stratix10 service layer driver")
Cc: stable@vger.kernel.org # 5.0+
Signed-off-by: Tze Yee Ng <tze.yee.ng@altera.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
