xen-scsifront: Add a missing call to kfree
authorQuentin Lambert <lambert.quentin@gmail.com>
Sat, 19 Nov 2016 18:22:56 +0000 (19:22 +0100)
committerJuergen Gross <jgross@suse.com>
Thu, 24 Nov 2016 08:23:14 +0000 (09:23 +0100)
commit1eb08545c0a3a2249ad53e393383cc06163d0d16
treed0b8f9e6d5a6429a53c88aab6511e995891fadc6
parent30b6b22f4e6ebe285ad22657fb3818e03c394bb1
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>
drivers/scsi/xen-scsifront.c