提交 a9d01d2b 编写于 作者: T Tejun Heo 提交者: Jeff Garzik

[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: NTejun Heo <htejun@gmail.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 4b9d7e04
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册