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
This commit is contained in:
Bart Van Assche
2019-08-25 01:59:09 +00:00
parent 5c7951c8d9
commit 5499f34f22
+2
View File
@@ -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