scsi: dpt_i2o: Add a missing call to kfree
authorQuentin Lambert <lambert.quentin@gmail.com>
Sat, 19 Nov 2016 17:42:34 +0000 (18:42 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Nov 2016 16:54:40 +0000 (11:54 -0500)
commit021e2927586dafc0a682b7f95d75bd06cc4fb703
tree0c9852f4a54969b4aa51ec93b441cae3000023ef
parentb1509e5d2b478f362dbadfe721d5efc0162e3c8e
scsi: dpt_i2o: 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.

This issue was found with Hector.

Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/dpt_i2o.c