linux/drivers/scsi/bnx2fc
Lin Yi 177709c070 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>
2019-06-26 22:43:02 -04:00
..
57xx_hsi_bnx2fc.h scsi: bnx2fc: Update copyright for 2017. 2017-06-27 21:39:09 -04:00
bnx2fc_constants.h scsi: bnx2fc: Update copyright for 2017. 2017-06-27 21:39:09 -04:00
bnx2fc_debug.c scsi: bnx2fc: Update copyright for 2017. 2017-06-27 21:39:09 -04:00
bnx2fc_debug.h scsi: bnx2fc: Update copyright for 2017. 2017-06-27 21:39:09 -04:00
bnx2fc_els.c scsi: bnx2fc: fix bnx2fc_cmd refcount imbalance in send_rec 2019-06-26 22:43:02 -04:00
bnx2fc_fcoe.c scsi: bnx2fc: Limit the IO size according to the FW capability 2019-06-26 22:42:45 -04:00
bnx2fc_hwi.c drivers: Remove explicit invocations of mmiowb() 2019-04-08 12:01:02 +01:00
bnx2fc_io.c scsi: bnx2fc: Limit the IO size according to the FW capability 2019-06-26 22:42:45 -04:00
bnx2fc_tgt.c scsi: bnx2fc: Separate out completion flags and variables for abort and cleanup 2019-06-26 22:42:38 -04:00
bnx2fc.h scsi: bnx2fc: Update the driver version to 2.12.10 2019-06-26 22:42:48 -04:00
Kconfig bnx2fc: Remove 'NetXtreme II' from source files. 2015-11-09 17:29:04 -08:00
Makefile [SCSI] bnx2fc: Reduce object size by consolidating formats 2012-07-20 08:58:17 +01:00