diff options
author | Tejun Heo <htejun@gmail.com> | 2006-02-28 03:38:10 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-03-01 14:48:42 -0500 |
commit | a9d01d2b49f528ffcf3093a77c66f254d297d5c8 (patch) | |
tree | a76fc7358faaba4c8fefc8f7feba689980dedd2f | |
parent | 4b9d7e04a8daaf3e5afe775ec9cbbfda5e32dd5b (diff) |
[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>
-rw-r--r-- | drivers/scsi/libata-core.c | 1 |
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, | |||
1040 | err_out: | 1040 | err_out: |
1041 | printk(KERN_WARNING "ata%u: dev %u failed to IDENTIFY (%s)\n", | 1041 | printk(KERN_WARNING "ata%u: dev %u failed to IDENTIFY (%s)\n", |
1042 | ap->id, dev->devno, reason); | 1042 | ap->id, dev->devno, reason); |
1043 | kfree(id); | ||
1044 | return rc; | 1043 | return rc; |
1045 | } | 1044 | } |
1046 | 1045 | ||