]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitccde0ff5b88ac5f25eb8af444d6b2cb5c3c5d6da
tree6ea31f7dbdb2895c905021827b2a8408753d231b
parentf98c2c8ea97012e8058d82a5ef6863cfbe0162cd
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