Re: [PATCH] [SCSI] csiostor: Don't leak mem or fail to release firmware in csio_hw_flash_config()

2012-12-28 Thread Naresh Kumar Inna
On 12/27/2012 2:01 AM, Jesper Juhl wrote: > 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 > --- > drivers/scsi/csiostor/csio_hw.c

Re: [PATCH] [SCSI] csiostor: Don't leak mem or fail to release firmware in csio_hw_flash_config()

2012-12-28 Thread Naresh Kumar Inna
On 12/27/2012 2:01 AM, Jesper Juhl wrote: 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 j...@chaosbits.net ---

[PATCH] [SCSI] csiostor: Don't leak mem or fail to release firmware in csio_hw_flash_config()

2012-12-26 Thread Jesper Juhl
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 --- drivers/scsi/csiostor/csio_hw.c | 15 +-- 1 files changed, 9

[PATCH] [SCSI] csiostor: Don't leak mem or fail to release firmware in csio_hw_flash_config()

2012-12-26 Thread Jesper Juhl
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 j...@chaosbits.net --- drivers/scsi/csiostor/csio_hw.c | 15 +-- 1 files