linux/drivers/scsi/qedf
Christophe JAILLET 47c4ccd308 scsi: qedf: Fix a potential NULL pointer dereference
At the beginning of 'qedf_srr_compl()' and of 'qedf_rec_compl()', we
check if 'orig_io_req' is NULL. If this happens, a NULL pointer
dereference will occur in the error handling path.

Fix it by adding an additional label in the error handling path in order
to avoid this NULL pointer dereference.

[mkp: typo]

Fixes: 61d8658b4a ("scsi: qedf: Add QLogic FastLinQ offload FCoE driver framework.")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-08-23 22:42:41 -04:00
..
Kconfig
Makefile qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
drv_fcoe_fw_funcs.c scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
drv_fcoe_fw_funcs.h scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
drv_scsi_fw_funcs.c scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
drv_scsi_fw_funcs.h scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
qedf.h scsi: qedf: Limit number of CQs 2017-07-26 22:00:39 -04:00
qedf_attr.c scsi: qedf: Add fka_period SCSI host attribute to show fip keep alive period. 2017-06-12 20:48:06 -04:00
qedf_dbg.c
qedf_dbg.h scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
qedf_debugfs.c scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
qedf_els.c scsi: qedf: Fix a potential NULL pointer dereference 2017-08-23 22:42:41 -04:00
qedf_fip.c SCSI misc on 20170704 2017-07-06 12:10:33 -07:00
qedf_hsi.h scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
qedf_io.c scsi: qedf: Check if sense buffer has been allocated during completion 2017-06-12 20:48:08 -04:00
qedf_main.c scsi: qedf: Limit number of CQs 2017-07-26 22:00:39 -04:00
qedf_version.h scsi: qedf: Update version number to 8.18.22.0. 2017-06-12 20:48:06 -04:00