Skip to content

Commit

Permalink
[PATCH] sil24: add missing ata_pad_free()
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
htejun authored and jgarzik committed Nov 13, 2005
1 parent 9e6c67f commit e9c05af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/sata_sil24.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ static void sil24_port_stop(struct ata_port *ap)
struct sil24_port_priv *pp = ap->private_data;

sil24_cblk_free(pp, dev);
ata_pad_free(ap, dev);
kfree(pp);
}

Expand Down

0 comments on commit e9c05af

Please sign in to comment.