From: Tejun Heo Date: Sun, 13 Nov 2005 15:24:18 +0000 (+0900) Subject: [PATCH] sil24: add missing ata_pad_free() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e9c05afa80ba9368ec5f78d493b17a8f836ef508;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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: Tejun Heo Signed-off-by: Jeff Garzik --- diff --git a/drivers/scsi/sata_sil24.c b/drivers/scsi/sata_sil24.c index d3198d9a72c..55e744d6db8 100644 --- a/drivers/scsi/sata_sil24.c +++ b/drivers/scsi/sata_sil24.c @@ -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); }