WSL2-Linux-Kernel/drivers/scsi/bfa
Colin Ian King 5f6ac2cee2 scsi: bfa: Do not dereference port before it is null checked
Port is deferenced before it is null sanity checked, hence we
potentially have a null pointer dereference bug. Instead, initialise
trl_enabled from port->fcs->bfa after we are sure port is not null.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-09-02 06:09:16 -04:00
..
Makefile [SCSI] bfa: Add BSG interface to support ELS, CT and vendor commands. 2011-06-29 15:59:53 -05:00
bfa.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_core.c bfa: deinline __bfa_trc() and __bfa_trc32() 2016-02-23 21:27:02 -05:00
bfa_cs.h bfa: deinline __bfa_trc() and __bfa_trc32() 2016-02-23 21:27:02 -05:00
bfa_defs.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_defs_fcs.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_defs_svc.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_fc.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_fcbuild.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_fcbuild.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_fcpim.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_fcpim.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_fcs.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_fcs.h bfa: fix bfa_fcb_itnim_alloc() error handling 2016-05-09 22:18:42 -04:00
bfa_fcs_fcpim.c bfa: fix bfa_fcb_itnim_alloc() error handling 2016-05-09 22:18:42 -04:00
bfa_fcs_lport.c scsi: bfa: Do not dereference port before it is null checked 2016-09-02 06:09:16 -04:00
bfa_fcs_rport.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_hw_cb.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_hw_ct.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_ioc.c bfa: use strncpy() instead of memcpy() 2016-02-23 21:27:02 -05:00
bfa_ioc.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_ioc_cb.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_ioc_ct.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_modules.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_plog.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_port.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_port.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_svc.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_svc.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfad.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfad_attr.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfad_bsg.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfad_bsg.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfad_debugfs.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfad_drv.h bfa: Update driver version to 3.2.25.0 2015-12-02 17:07:57 -05:00
bfad_im.c bfa: fix bfa_fcb_itnim_alloc() error handling 2016-05-09 22:18:42 -04:00
bfad_im.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfi.h scripts/spelling.txt: add "fimware" misspelling 2016-05-19 19:12:14 -07:00
bfi_ms.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfi_reg.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00