From: Jesper Juhl Date: Wed, 26 Dec 2012 20:31:51 +0000 (+0100) Subject: [SCSI] csiostor: Don't leak mem or fail to release firmware in csio_hw_flash_config() X-Git-Tag: v3.9-rc1~45^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02db3db5aaa1154a748a7cba93e9f0098ad62f78;p=pandora-kernel.git [SCSI] csiostor: Don't leak mem or fail to release firmware in csio_hw_flash_config() If kzalloc() or csio_hw_check_fwconfig() fail we may leave the csio_hw_flash_config() function without freeing allocated memory or firmware. This should take care of the leaks. Signed-off-by: Jesper Juhl Acked-by: Naresh Kumar Inna Signed-off-by: James Bottomley --- Reading git-diff-tree failed