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

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}