linux-stable/drivers/scsi/lpfc
Dan Carpenter dd079e26a0 scsi: lpfc: Use after free in lpfc_rq_buf_free()
[ Upstream commit 9816ef6ecb ]

The error message dereferences "rqb_entry" so we need to print it first
and then free the buffer.

Fixes: 6c621a2229 ("scsi: lpfc: Separate NVMET RQ buffer posting from IO resources SGL/iocbq/context")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-25 11:08:01 +01:00
..
lpfc.h
lpfc_attr.c scsi: lpfc: Fix crash receiving ELS while detaching driver 2017-11-30 08:40:50 +00:00
lpfc_attr.h
lpfc_bsg.c scsi: lpfc: Fix crash receiving ELS while detaching driver 2017-11-30 08:40:50 +00:00
lpfc_bsg.h
lpfc_compat.h
lpfc_crtn.h
lpfc_ct.c
lpfc_debugfs.c SCSI misc on 20170907 2017-09-07 21:11:05 -07:00
lpfc_debugfs.h scsi: lpfc: avoid false-positive gcc-8 warning 2017-08-25 18:26:52 -04:00
lpfc_disc.h
lpfc_els.c scsi: lpfc: Fix crash receiving ELS while detaching driver 2017-11-30 08:40:50 +00:00
lpfc_hbadisc.c scsi: lpfc: PLOGI failures during NPIV testing 2017-12-25 14:26:29 +01:00
lpfc_hw.h
lpfc_hw4.h scsi: lpfc: Fix secure firmware updates 2017-12-25 14:26:28 +01:00
lpfc_ids.h
lpfc_init.c scsi: lpfc: Fix crash after bad bar setup on driver attachment 2018-02-16 20:23:11 +01:00
lpfc_logmsg.h
lpfc_mbox.c
lpfc_mem.c scsi: lpfc: Use after free in lpfc_rq_buf_free() 2018-02-25 11:08:01 +01:00
lpfc_nl.h
lpfc_nportdisc.c scsi: lpfc: Fix crash receiving ELS while detaching driver 2017-11-30 08:40:50 +00:00
lpfc_nvme.c lpfc: remove use of FC-specific error codes 2017-09-25 08:56:05 -06:00
lpfc_nvme.h
lpfc_nvmet.c scsi: lpfc: Fix warning messages when NVME_TARGET_FC not defined 2017-12-25 14:26:29 +01:00
lpfc_nvmet.h SCSI misc on 20170907 2017-09-07 21:11:05 -07:00
lpfc_scsi.c
lpfc_scsi.h
lpfc_sli.c scsi: lpfc: Fix FCP hba_wqidx assignment 2017-11-30 08:40:50 +00:00
lpfc_sli.h
lpfc_sli4.h
lpfc_version.h scsi: lpfc: lpfc version bump 11.4.0.3 2017-08-24 22:29:44 -04:00
lpfc_vport.c
lpfc_vport.h
Makefile