]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: qla2xxx: Make qla2x00_abort_srb() again decrease the sp reference count
authorBart Van Assche <bvanassche@acm.org>
Fri, 9 Aug 2019 03:01:22 +0000 (20:01 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Aug 2019 01:34:04 +0000 (21:34 -0400)
commitd2d2b5a5741d317bed1fa38211f1f3b142d8cf7a
tree3ae258bfd798e9fcbc525cfa7624f6dcb947421d
parent6e0b7ca281d764b5ae3d2cb97cf2dfe185e7b91e
scsi: qla2xxx: Make qla2x00_abort_srb() again decrease the sp reference count

Since qla2x00_abort_srb() starts with increasing the reference count of
@sp, decrease that same reference count before returning.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Fixes: 219d27d7147e ("scsi: qla2xxx: Fix race conditions in the code for aborting SCSI commands") # v5.2.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_os.c