From 5499f34f2294cc8450aff7297c1688b961d46f48 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 25 Aug 2019 01:59:09 +0000 Subject: [PATCH] qla2x00t-32gbit: 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. [ commit d2d2b5a5741d317bed1fa38211f1f3b142d8cf7a upstram ] git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8537 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t-32gbit/qla_os.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qla2x00t-32gbit/qla_os.c b/qla2x00t-32gbit/qla_os.c index cceb4ef6d..0736e5dbf 100644 --- a/qla2x00t-32gbit/qla_os.c +++ b/qla2x00t-32gbit/qla_os.c @@ -1800,6 +1800,8 @@ static void qla2x00_abort_srb(struct qla_qpair *qp, srb_t *sp, const int res, spin_lock_irqsave(qp->qp_lock_ptr, *flags); sp->comp = NULL; } + + atomic_dec(&sp->ref_count); } static void