Commit e9c05afa authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik

[PATCH] 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: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 9e6c67fd
...@@ -687,6 +687,7 @@ static void sil24_port_stop(struct ata_port *ap) ...@@ -687,6 +687,7 @@ static void sil24_port_stop(struct ata_port *ap)
struct sil24_port_priv *pp = ap->private_data; struct sil24_port_priv *pp = ap->private_data;
sil24_cblk_free(pp, dev); sil24_cblk_free(pp, dev);
ata_pad_free(ap, dev);
kfree(pp); kfree(pp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment