]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] csiostor: Don't leak mem or fail to release firmware in csio_hw_flash_config()
authorJesper Juhl <jj@chaosbits.net>
Wed, 26 Dec 2012 20:31:51 +0000 (21:31 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 29 Jan 2013 23:48:50 +0000 (10:48 +1100)
commit9e38b3f7d83695e18db3da4fb6c40a0f845adf55
treeb927c5f2bbb73b670a51180076327a16e5418e22
parenta66ebcdff551f24e14c1227d7e7504ddb581cc50
[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 <jj@chaosbits.net>
Acked-by: Naresh Kumar Inna <naresh@chelsio.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/csiostor/csio_hw.c