mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 23:21:31 +00:00
xen-scsifront: Add a missing call to kfree
Most error branches following the call to kmalloc contain a call to kfree. This patch add these calls where they are missing. This issue was found with Hector. Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
parent
30b6b22f4e
commit
1eb08545c0
@ -627,6 +627,7 @@ static int scsifront_action_handler(struct scsi_cmnd *sc, uint8_t act)
|
||||
|
||||
if (scsifront_enter(info)) {
|
||||
spin_unlock_irq(host->host_lock);
|
||||
kfree(shadow);
|
||||
return FAILED;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user