James Smart e5785d3ec3 scsi: lpfc: Re-fix use after free in lpfc_rq_buf_free()
Commit 9816ef6ecbc1 ("scsi: lpfc: Use after free in lpfc_rq_buf_free()")
was made to correct a use after free condition in lpfc_rq_buf_free().
Unfortunately, a subsequent patch cut on a tree without the fix
inadvertently reverted the fix.

Put the fix back: Move the freeing of the rqb_entry to after the print
function that references it.

Link: https://lore.kernel.org/r/20201020202719.54726-4-james.smart@broadcom.com
Fixes: 411de511c694 ("scsi: lpfc: Fix RQ empty firmware trap")
Cc: <stable@vger.kernel.org> # v4.17+
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-10-26 21:42:38 -04:00
..
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2020-10-23 16:19:02 -07:00
2020-10-14 15:15:35 -07:00
2020-10-23 16:19:02 -07:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2020-10-16 12:21:15 -07:00
2020-03-11 23:07:59 -04:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2020-10-23 16:19:02 -07:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2019-03-02 11:39:54 -08:00
2020-10-23 16:19:02 -07:00
2019-11-12 22:21:35 -05:00
2020-02-24 14:54:25 -05:00
2020-03-11 23:07:59 -04:00
2020-10-07 21:48:28 -04:00
2019-01-08 21:58:35 -05:00
2020-09-02 22:49:06 -04:00
2020-10-26 18:23:24 -04:00
2020-09-02 22:49:06 -04:00
2020-08-23 17:36:59 -05:00
2020-10-26 18:23:24 -04:00
2018-11-06 21:31:28 -05:00
2020-10-13 12:12:44 -07:00
2020-07-24 22:09:55 -04:00
2020-10-14 15:15:35 -07:00
2020-10-26 18:23:24 -04:00
2020-10-23 16:19:02 -07:00
2020-09-15 21:31:27 -04:00
2020-09-15 17:34:18 -04:00
2020-08-23 17:36:59 -05:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2020-10-14 15:15:35 -07:00
2020-10-24 12:46:42 -07:00
2020-08-06 16:50:07 -07:00
2020-06-19 23:06:43 -04:00
2020-10-23 16:19:02 -07:00
2020-10-14 15:15:35 -07:00
2019-07-11 15:14:01 -07:00
2020-10-23 16:19:02 -07:00
2020-02-24 15:01:57 -05:00
2020-10-26 18:23:24 -04:00
2020-10-14 15:15:35 -07:00
2019-07-11 15:14:01 -07:00