Fixed improper context in SA registration callbacks
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 20 May 2005 23:55:29 +0000 (23:55 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 20 May 2005 23:55:29 +0000 (23:55 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@4 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/al_reg_svc.c

index edddec3..12b8e12 100644 (file)
@@ -317,7 +317,7 @@ ib_reg_svc(
        h_sa_reg->port_guid = p_reg_svc_req->port_guid;\r
 \r
        /* Copy the service registration information. */\r
-       h_sa_reg->sa_req.user_context = h_sa_reg;\r
+       h_sa_reg->sa_req.user_context = p_reg_svc_req->svc_context;\r
        h_sa_reg->pfn_reg_svc_cb = p_reg_svc_req->pfn_reg_svc_cb;\r
        h_sa_reg->svc_rec = p_reg_svc_req->svc_rec;\r
 \r