summaryrefslogtreecommitdiffstats
path: root/Documentation/scsi
diff options
context:
space:
mode:
authorLin Yi2019-06-25 04:35:29 +0200
committerMartin K. Petersen2019-06-27 04:43:02 +0200
commit7bfe5ae57c803dd529aaf6feb32c3b49ebff66bd (patch)
tree0e9c5594911a642dc4a3c3bb149638b4208e548d /Documentation/scsi
parentscsi: bnx2fc: fix bnx2fc_cmd refcount imbalance in send_rec (diff)
downloadkernel-qcow2-linux-7bfe5ae57c803dd529aaf6feb32c3b49ebff66bd.tar.gz
kernel-qcow2-linux-7bfe5ae57c803dd529aaf6feb32c3b49ebff66bd.tar.xz
kernel-qcow2-linux-7bfe5ae57c803dd529aaf6feb32c3b49ebff66bd.zip
scsi: bnx2fc: fix bnx2fc_cmd refcount imbalance in send_srr
If cb_arg alloc failed, we can't release the struct orig_io_req refcount before we take its refcount. As Saurav said, move the srr_err label down to avoid unnecessary refcount release and nullptr free. Signed-off-by: Lin Yi <teroincn@163.com> Acked-by: Saurav Kashyap <skashyap@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'Documentation/scsi')
0 files changed, 0 insertions, 0 deletions