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@xxxxxxxxxxxxxx>