diff options
author | Lin Yi <teroincn@163.com> | 2019-06-25 04:34:16 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-06-27 04:43:02 +0200 |
commit | 177709c0702e7351dae3b9b4f9de3140a9ee3a06 (patch) | |
tree | 0c3198064d719f79b3698766111214cf71cb52f0 /drivers/scsi/lpfc/lpfc_scsi.h | |
parent | scsi: bnx2fc: Update the driver version to 2.12.10 (diff) | |
download | linux-177709c0702e7351dae3b9b4f9de3140a9ee3a06.tar.xz linux-177709c0702e7351dae3b9b4f9de3140a9ee3a06.zip |
scsi: bnx2fc: fix bnx2fc_cmd refcount imbalance in send_rec
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 rec_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 'drivers/scsi/lpfc/lpfc_scsi.h')
0 files changed, 0 insertions, 0 deletions