1
linux/drivers/scsi/qla2xxx
Bart Van Assche 8c0eb596ba [SCSI] qla2xxx: Fix a memory leak in an error path of qla2x00_process_els()
Avoid that the fcport structure gets leaked if
bsg_job->request->msgcode == FC_BSG_HST_ELS_NOLOGIN, the fcport
allocation succeeds and the !vha->flags.online branch is taken.
This was detected by Coverity. However, Coverity does not recognize
that all qla2x00_process_els() callers specify either
FC_BSG_RPT_ELS or FC_BSG_HST_ELS_NOLOGIN in the field
bsg_job->request->msgcode and that the value of that field is not
modified inside that function. This results in a false positive
report about a possible memory leak in an error path for
bsg_job->request->msgcode values other than the two mentioned
values.  Make it easy for Coverity (and for humans) to recognize
that there is no fcport leak in the error path by changing the
bsg_job->request->msgcode == FC_BSG_HST_ELS_NOLOGIN test into
bsg_job->request->msgcode != FC_BSG_RPT_ELS.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2013-07-08 17:36:21 +01:00
..
Kconfig [SCSI] qla2xxx: Update firmware link in Kconfig file. 2013-05-10 07:47:53 -07:00
Makefile [SCSI] qla2xxx: Enhancements to support ISPFx00. 2013-04-11 15:42:04 -07:00
qla_attr.c [SCSI] qla2xxx: Do not query FC statistics during chip reset. 2013-07-08 17:19:32 +01:00
qla_bsg.c [SCSI] qla2xxx: Fix a memory leak in an error path of qla2x00_process_els() 2013-07-08 17:36:21 +01:00
qla_bsg.h [SCSI] qla2xxx: Enhancements to support ISPFx00. 2013-04-11 15:42:04 -07:00
qla_dbg.c [SCSI] qla2xxx: Remove redundant assignments. 2013-07-08 17:30:25 +01:00
qla_dbg.h [SCSI] qla2xxx: Update the copyright information. 2013-02-22 12:49:22 +00:00
qla_def.h [SCSI] qla2xxx: Fix sparse warning from qla_mr.c and qla_iocb.c. 2013-07-08 17:22:52 +01:00
qla_devtbl.h
qla_dfs.c [SCSI] qla2xxx: Update the copyright information. 2013-02-22 12:49:22 +00:00
qla_fw.h [SCSI] qla2xxx: Update the copyright information. 2013-02-22 12:49:22 +00:00
qla_gbl.h [SCSI] qla2xxx: Fix sparse warning from qla_mr.c and qla_iocb.c. 2013-07-08 17:22:52 +01:00
qla_gs.c [SCSI] qla2xxx: Help Coverity with analyzing ct_sns_pkt initialization. 2013-07-08 17:32:34 +01:00
qla_init.c [SCSI] qla2xxx: Remove dead code in qla2x00_configure_hba() 2013-07-08 17:27:07 +01:00
qla_inline.h [SCSI] qla2xxx: Fix sparse warning from qla_mr.c and qla_iocb.c. 2013-07-08 17:22:52 +01:00
qla_iocb.c [SCSI] qla2xxx: Remove a dead assignment in qla24xx_build_scsi_crc_2_iocbs(). 2013-07-08 17:29:21 +01:00
qla_isr.c [SCSI] qla2xxx: Fix qla2xxx_check_risc_status(). 2013-07-08 17:33:47 +01:00
qla_mbx.c [SCSI] qla2xxx: Do not take a second firmware dump when intentionally generating one. 2013-07-08 17:21:51 +01:00
qla_mid.c [SCSI] qla2xxx: Update the copyright information. 2013-02-22 12:49:22 +00:00
qla_mr.c [SCSI] qla2xxx: Fix sparse warning from qla_mr.c and qla_iocb.c. 2013-07-08 17:22:52 +01:00
qla_mr.h [SCSI] qla2xxx: Fix sparse warning from qla_mr.c and qla_iocb.c. 2013-07-08 17:22:52 +01:00
qla_nx.c [SCSI] qla2xxx: Fix for locking issue between driver ISR and mailbox routines 2013-05-12 12:51:15 -07:00
qla_nx.h [SCSI] qla2xxx: Update the copyright information. 2013-02-22 12:49:22 +00:00
qla_os.c [SCSI] qla2xxx: Remove an unused variable from qla2x00_remove_one(). 2013-07-08 17:35:09 +01:00
qla_settings.h [SCSI] qla2xxx: Update the copyright information. 2013-02-22 12:49:22 +00:00
qla_sup.c [SCSI] qla2xxx: Update the copyright information. 2013-02-22 12:49:22 +00:00
qla_target.c qla2xxx: Remove unused function 2013-04-25 01:05:23 -07:00
qla_target.h qla2xxx: Remove unused function 2013-04-25 01:05:23 -07:00
qla_version.h [SCSI] qla2xxx: Update the driver version to 8.05.00.03-k. 2013-04-11 15:49:41 -07:00
tcm_qla2xxx.c tcm_qla2xxx: Fix residual for underrun commands that fail 2013-06-14 01:12:56 -07:00
tcm_qla2xxx.h tcm_qla2xxx: Format VPD page 83h SCSI name string according to SPC 2012-10-26 12:29:46 -07:00