summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-core.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-02-28 17:38:10 +0900
committerJeff Garzik <jeff@garzik.org>2006-03-01 14:48:42 -0500
commita9d01d2b49f528ffcf3093a77c66f254d297d5c8 (patch)
treea76fc7358faaba4c8fefc8f7feba689980dedd2f /drivers/scsi/libata-core.c
parent4b9d7e04a8daaf3e5afe775ec9cbbfda5e32dd5b (diff)
downloadlinux-a9d01d2b49f528ffcf3093a77c66f254d297d5c8.tar.gz
linux-a9d01d2b49f528ffcf3093a77c66f254d297d5c8.tar.bz2
linux-a9d01d2b49f528ffcf3093a77c66f254d297d5c8.zip
[PATCH] libata: kill illegal kfree(id)
Kill kfree(id) in failure path of ata_dev_read_id(). id is not dynamically allocated yet. Signed-off-by: Tejun Heo <htejun@gmail.com> Cc: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r--drivers/scsi/libata-core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 17c1df435cc8..e34b421eb2a3 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -1040,7 +1040,6 @@ static int ata_dev_read_id(struct ata_port *ap, struct ata_device *dev,
err_out:
printk(KERN_WARNING "ata%u: dev %u failed to IDENTIFY (%s)\n",
ap->id, dev->devno, reason);
- kfree(id);
return rc;
}