scsi: lpfc: Fix ancient double free
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 25 Jan 2021 08:44:34 +0000 (11:44 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Jan 2021 03:08:57 +0000 (22:08 -0500)
commit0be310979e5e1272d4c5b557642df4da4ce7eba4
treebe500d9a6d8f2bd115d63f47000a9839bfc3b1a3
parentbc2b4e68023174e508a4a9605384a7fda475f8a8
scsi: lpfc: Fix ancient double free

The "pmb" pointer is freed at the start of the function and then freed
again in the error handling code.

Link: https://lore.kernel.org/r/YA6E8rO51hE56SVw@mwanda
Fixes: 92d7f7b0cde3 ("[SCSI] lpfc: NPIV: add NPIV support on top of SLI-3")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_hbadisc.c