linux/drivers/scsi/qla2xxx
Quinn Tran 0ea88662b5 scsi: qla2xxx: Fix NULL pointer access due to redundant fc_host_port_name call
Remove redundant fc_host_port_name calls to prevent early access of
scsi_host->shost_data buffer. This prevent null pointer access.

Following stack trace is seen:

BUG: unable to handle kernel NULL pointer dereference at 00000000000008
IP: qla24xx_report_id_acquisition+0x22d/0x3a0 [qla2xxx]

Cc: <stable@vger.kernel.org> # v4.11+
Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-05-24 21:55:50 -04:00
..
Kconfig qla2xxx: Change scsi host lookup method. 2017-03-18 17:28:37 -07:00
Makefile
qla_attr.c SCSI misc on 20170503 2017-05-04 12:19:44 -07:00
qla_bsg.c SCSI misc on 20170503 2017-05-04 12:19:44 -07:00
qla_bsg.h
qla_dbg.c scsi: qla2xxx: Fix ql_dump_buffer 2017-03-06 22:24:28 -05:00
qla_dbg.h qla2xxx: Improve T10-DIF/PI handling in driver. 2017-03-18 17:28:36 -07:00
qla_def.h qla2xxx: Fix delayed response to command for loop mode/direct connect. 2017-03-18 17:28:38 -07:00
qla_devtbl.h
qla_dfs.c qla2xxx: Add DebugFS node to display Port Database 2017-03-18 17:28:37 -07:00
qla_fw.h qla2xxx: Improve RSCN handling in driver 2017-02-09 00:39:02 -08:00
qla_gbl.h qla2xxx: Change scsi host lookup method. 2017-03-18 17:28:37 -07:00
qla_gs.c scsi: qla2xxx: Fix typo in driver 2017-04-04 20:13:57 -04:00
qla_init.c SCSI misc on 20170503 2017-05-04 12:19:44 -07:00
qla_inline.h qla2xxx: Simplify usage of SRB structure in driver 2017-02-09 00:39:03 -08:00
qla_iocb.c qla2xxx: Improve T10-DIF/PI handling in driver. 2017-03-18 17:28:36 -07:00
qla_isr.c scsi: qla2xxx: Fix recursive loop during target mode configuration for ISP25XX leaving system unresponsive 2017-05-24 21:55:50 -04:00
qla_mbx.c scsi: qla2xxx: Fix NULL pointer access due to redundant fc_host_port_name call 2017-05-24 21:55:50 -04:00
qla_mid.c qla2xxx: Allow vref count to timeout on vport delete. 2017-03-18 17:27:56 -07:00
qla_mr.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2017-03-02 14:52:05 -08:00
qla_mr.h
qla_nx2.c qla2xxx: Move two arrays from header files to .c files 2017-01-17 11:26:41 -08:00
qla_nx2.h qla2xxx: Move two arrays from header files to .c files 2017-01-17 11:26:41 -08:00
qla_nx.c qla2xxx: Move two arrays from header files to .c files 2017-01-17 11:26:41 -08:00
qla_nx.h qla2xxx: Move two arrays from header files to .c files 2017-01-17 11:26:41 -08:00
qla_os.c scsi: qla2xxx: don't disable a not previously enabled PCI device 2017-05-24 15:09:54 -04:00
qla_settings.h
qla_sup.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
qla_target.c qla2xxx: Fix delayed response to command for loop mode/direct connect. 2017-03-18 17:28:38 -07:00
qla_target.h qla2xxx: Add async new target notification 2017-03-18 17:28:37 -07:00
qla_tmpl.c qla2xxx: Include ATIO queue in firmware dump when in target mode 2017-01-17 11:26:53 -08:00
qla_tmpl.h
qla_version.h qla2xxx: Update driver version to 9.00.00.00-k 2017-03-18 17:28:38 -07:00
tcm_qla2xxx.c qla2xxx: Improve T10-DIF/PI handling in driver. 2017-03-18 17:28:36 -07:00
tcm_qla2xxx.h qla2xxx: Track I-T nexus as single fc_port struct 2017-02-08 23:34:07 -08:00