1
0
Fork 0

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>
hifive-unleashed-5.1
Quentin Lambert 2016-11-19 19:22:56 +01:00 committed by Juergen Gross
parent 30b6b22f4e
commit 1eb08545c0
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}