[PATCH] [SCSI] mpt3sas: don't leak 'fw_event' in mpt3sas_send_trigger_data_event()

2013-09-30 Thread Jesper Juhl
If we successfully allocate 'fw_event' but subsequently fail to allocate 'fw_event->event_data' then we'll return from the function without properly freeing 'fw_event'. This patch takes care of that leak. Signed-off-by: Jesper Juhl --- drivers/scsi/mpt3sas/mpt3sas_scsih.c |4 +++- 1 files

[PATCH] [SCSI] mpt3sas: don't leak 'fw_event' in mpt3sas_send_trigger_data_event()

2013-09-30 Thread Jesper Juhl
If we successfully allocate 'fw_event' but subsequently fail to allocate 'fw_event-event_data' then we'll return from the function without properly freeing 'fw_event'. This patch takes care of that leak. Signed-off-by: Jesper Juhl j...@chaosbits.net --- drivers/scsi/mpt3sas/mpt3sas_scsih.c |