]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
scsi: lpfc: Use after free in lpfc_rq_buf_free()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 22 Nov 2017 08:58:03 +0000 (11:58 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 29 Nov 2017 04:46:06 +0000 (23:46 -0500)
commit9816ef6ecbc102b9bcbb1d83e12c7fb19924f38c
treed0043f8f759d26cbb2ea98948743f3f270c64fa6
parentc2e8fbf908afd81ad502b567a6639598f92c9b9d
scsi: lpfc: Use after free in lpfc_rq_buf_free()

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

Fixes: 6c621a2229b0 ("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>
drivers/scsi/lpfc/lpfc_mem.c