Commit 1eb08545 authored by Quentin Lambert's avatar Quentin Lambert Committed by Juergen Gross

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: default avatarQuentin Lambert <lambert.quentin@gmail.com>
Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
parent 30b6b22f
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment