Re: [PATCH 6.1.y] firmware: stratix10-svc: fix memory leaks and list corruption bugs

Sasha Levin <[email protected]>
Newsgroups org.kernel.vger.stable
Message-ID <[email protected]>
On Thu, Aug 06, 2026 at 03:18:07AM -0700, Tze Yee Ng wrote:
> 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.

Queued for 6.6, 6.1, 5.15 and 5.10, thanks. The 5.15.y and 5.10.y v2
patches I had on hold are queued too now that 6.6 and 6.1 have the fix.

-- 
Thanks,
Sasha
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.