[U-Boot] [BUG] disk drivers do not free private memory
Pavel Herrmann
morpheus.ibis at gmail.com
Wed Aug 29 16:46:49 CEST 2012
Hi,
While implementing a loopback block device for the sandbox board, i have found
an issue in block drivers. From what i can tell, none of the drivers ever
free() their private data (that is sata_dev_desc[]->priv), some of them
(dwc_ahsata, fsl_sata) do not even check if they are already inited.
If i have one of these drivers, i can repeatedly do "sata init" until all my
memory is leaked. Noone is stupid enough to do this, but it still shouldn't be
possible.
Best regards,
Pavel Herrmann
More information about the U-Boot
mailing list