
29 Aug
2012
29 Aug
'12
4:46 p.m.
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