mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-02 10:43:57 +08:00
[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>
This commit is contained in:
parent
4b9d7e04a8
commit
a9d01d2b49
@ -1040,7 +1040,6 @@ static int ata_dev_read_id(struct ata_port *ap, struct ata_device *dev,
|
|||||||
err_out:
|
err_out:
|
||||||
printk(KERN_WARNING "ata%u: dev %u failed to IDENTIFY (%s)\n",
|
printk(KERN_WARNING "ata%u: dev %u failed to IDENTIFY (%s)\n",
|
||||||
ap->id, dev->devno, reason);
|
ap->id, dev->devno, reason);
|
||||||
kfree(id);
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user