Re: (subset) [PATCH 1/2] nvmem: core: fix memory leak in nvmem_register() on error path

From: Srinivas Kandagatla
Date: Fri Jun 27 2025 - 08:08:40 EST



On Sun, 15 Jun 2025 06:52:07 -0700, Alok Tiwari wrote:
> Ensure that the allocated nvmem structure is freed if device
> registration return error code.
> The missing kfree() caused a memory leak when nvmem_register()
> exited via err_put_device label.
>
>

Applied, thanks!

[2/2] nvmem: core: Fix typos in comments and MODULE_AUTHOR strings
commit: 98addb97db5d86ad18c831241c03f180d269438f

Best regards,
--
Srinivas Kandagatla <srini@xxxxxxxxxx>