[PATCH master] usb: typec: fix freeing uninitialized memory

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 25 00:14:36 PST 2024


On Fri, 22 Nov 2024 10:53:26 +0100, Ahmad Fatoum wrote:
> When the code was first added, a kzalloc was allocating the memory for
> the struct device. This has been recently changed to malloc as a
> shifting of the header caused the function to be no longer defined.
> 
> malloc() doesn't zero the memory though, leading to a potential freeing
> of uninitialized memory in dev_set_name.
> 
> [...]

Applied, thanks!

[1/1] usb: typec: fix freeing uninitialized memory
      https://git.pengutronix.de/cgit/barebox/commit/?id=ae7b9c0383eb (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list