diff options
author | Tejun Heo <htejun@gmail.com> | 2006-02-28 17:38:10 +0900 |
---|---|---|
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 17c1df435cc..e34b421eb2a 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; } |