]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: sif_eq: fix missing qp->refcnt decrement for COMM_EST events
authorFrancisco Triviño <francisco.trivino@oracle.com>
Wed, 13 Jul 2016 15:23:40 +0000 (17:23 +0200)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 27 Jul 2016 17:24:21 +0000 (10:24 -0700)
commitca39114e78e24ea234e79fd6f09815fc72761ffe
tree39af332487f7501d7478664340d3ce2f15e3b89d
parentf5f4f95b9f6eb6cf1e5b5b2ef5b5f33363a0e77a
sif: sif_eq: fix missing qp->refcnt decrement for COMM_EST events

qp->refcnt is increased by 1 when event_status_communication_established
is dispatched but later it is not decremented when handling the event
work for IB_EVENT_COMM_EST for UD & RAW QP types.

This commit decrements qp->refcnt for those cases too and fixes another
potential bug by moving the sif_log line up before the qp->refcnt
decrement.

Orabug: 24288467

Signed-off-by: Francisco Triviño <francisco.trivino@oracle.com>
Reviewed-by: Håkon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Knut Omang <knut.omang@oracle.com>
drivers/infiniband/hw/sif/sif_eq.c