summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.c
diff options
context:
space:
mode:
authorJames Smart <jsmart2021@gmail.com>2020-01-28 01:23:02 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2020-02-11 04:46:55 +0100
commit0ab384a49c548baf132ccef249f78d9c6c506380 (patch)
tree3027d85c45ef45cc8d1ddcbfdd4d36e45cff0dc0 /fs/cifs/smb2pdu.c
parentscsi: lpfc: Fix RQ buffer leakage when no IOCBs available (diff)
downloadlinux-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/cifs/smb2pdu.c')
0 files changed, 0 insertions, 0 deletions