scsi: aic94xx: Add a missing call to kfree
authorQuentin Lambert <lambert.quentin@gmail.com>
Fri, 25 Nov 2016 12:23:51 +0000 (13:23 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Nov 2016 16:21:49 +0000 (11:21 -0500)
commitaa8c65a4fdc881b32c012c45f985617659aef1a9
tree6ea31f7dbdb2895c905021827b2a8408753d231b
parent16961204a0ebcb87b89ed3be14b0a484c754d7e4
scsi: aic94xx: Add a missing call to kfree

Most error branches following the call to kzalloc contain a call to
kfree. This patch add these calls where they are missing and set the
relevant pointers to NULL.

This issue was found with Hector.

Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aic94xx/aic94xx_hwi.c