sil24: add missing ata_pad_free()
PATCH 1/1 sil24: add missing ata_pad_free()
sil24_port_stop() is missing call to ata_pad_free() thus leaking pad buffer when a port is stopped. This patch adds it.
Signed-off-by Tejun Heo <[email protected]>
drivers/scsi/sata_sil24.c +1 -0
@@ -687,6 +687,7 @@ static void sil24_port_stop(struct ata_pstruct sil24_port_priv *pp = ap->private_data;sil24_cblk_free (pp, dev); +ata_pad_free (ap, dev);kfree (pp); }