diff options
author | James Smart <jsmart2021@gmail.com> | 2020-01-28 01:23:02 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-02-11 04:46:55 +0100 |
commit | 0ab384a49c548baf132ccef249f78d9c6c506380 (patch) | |
tree | 3027d85c45ef45cc8d1ddcbfdd4d36e45cff0dc0 /fs/qnx4 | |
parent | scsi: lpfc: Fix RQ buffer leakage when no IOCBs available (diff) | |
download | linux-0ab384a49c548baf132ccef249f78d9c6c506380.tar.xz linux-0ab384a49c548baf132ccef249f78d9c6c506380.zip |
scsi: lpfc: Fix lpfc_io_buf resource leak in lpfc_get_scsi_buf_s4 error path
If a call to lpfc_get_cmd_rsp_buf_per_hdwq returns NULL (memory allocation
failure), a previously allocated lpfc_io_buf resource is leaked.
Fix by releasing the lpfc_io_buf resource in the failure path.
Fixes: d79c9e9d4b3d ("scsi: lpfc: Support dynamic unbounded SGL lists on G7 hardware.")
Cc: <stable@vger.kernel.org> # v5.4+
Link: https://lore.kernel.org/r/20200128002312.16346-3-jsmart2021@gmail.com
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>
Diffstat (limited to 'fs/qnx4')
0 files changed, 0 insertions, 0 deletions