OSDN Git Service

scsi: lpfc: Fix memory leak in abnormal exit path from lpfc_eq_create
authorJames Smart <jsmart2021@gmail.com>
Wed, 22 May 2019 00:49:03 +0000 (17:49 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Jun 2019 23:46:21 +0000 (19:46 -0400)
commit04d210c98e11d863ebe38a7e482e40fb90d9ad82
tree890e9d62402955a7247e94cdb8b71c55fb312a47
parentc15e07047e7ad006324d8a8b9d58a86e8f0131fe
scsi: lpfc: Fix memory leak in abnormal exit path from lpfc_eq_create

eq create is leaking mailbox memory if it encounters an error.

rework error path to free the memory.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c