From: sean.hefty@intel.com Date: Wed, 4 Apr 2012 00:20:35 +0000 (-0700) Subject: Fix refcnt for multicast destination X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=4f23053ab33fa519a16374f0b9273ca04798b56a;p=~shefty%2Fibacm.git Fix refcnt for multicast destination mc_dest has a default refcnt of 0. When a multicast destination is released, an attempt is made to free it, which can result in the ibacm service crashing. Signed-off-by: Sean Hefty --- diff --git a/src/acm.c b/src/acm.c index d47f9d6..cff9113 100644 --- a/src/acm.c +++ b/src/acm.c @@ -762,6 +762,7 @@ static void acm_process_join_resp(struct acm_ep *ep, struct ib_user_mad *umad) } } + atomic_set(&dest.refcnt, 1); dest->state = ACM_READY; acm_log(1, "join successful\n"); out: