Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9d01d2b authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

[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: default avatarTejun Heo <htejun@gmail.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 4b9d7e04
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
}