Skip to contentSkip to conversation

disk drivers do not free private memory

U-Boot Pavel Herrmann 1 participant 1 message Aug 29, 2012

lore
Share & tools
lore
#0 lore raw

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