[PATCH] i3c: dw: Fix memory leak in dw_i3c_master_i2c_xfers()
Markus Elfring
Markus.Elfring at web.de
Mon Jan 26 02:22:27 PST 2026
…
> Add a dw_i3c_master_free_xfer() call to the error path to ensure the
> allocated memory is properly freed.
…
https://elixir.bootlin.com/linux/v6.19-rc5/source/drivers/i3c/master/dw-i3c-master.c#L1065-L1137
* Would you like to complete the exception handling by using another goto chain?
* How do you think about to increase the application of scope-based resource management?
See also once more:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/stable-kernel-rules.rst?h=v6.19-rc7#n34
Regards,
Markus
More information about the linux-i3c
mailing list