[PATCH] soc: mediatek: SVS: Fix memory leak in svs_enable_debug_write()
Markus Elfring
Markus.Elfring at web.de
Sun Dec 28 06:19:00 PST 2025
…
> Fix this by freeing buf before returning the error code.
How do you think about to use the attribute “__free(kfree)”?
https://elixir.bootlin.com/linux/v6.19-rc2/source/include/linux/slab.h#L512
https://elixir.bootlin.com/linux/v6.19-rc2/source/drivers/soc/mediatek/mtk-svs.c#L785-L813
Regards,
Markus
More information about the linux-arm-kernel
mailing list