[IBBUS] Fix a bug that prevented from getting the SM_CHANGE event on port 2.
authorsleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 5 Mar 2007 07:30:16 +0000 (07:30 +0000)
committersleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 5 Mar 2007 07:30:16 +0000 (07:30 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@602 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/kernel/al_smi.c

index 604e179..6d7f786 100644 (file)
@@ -2353,7 +2353,7 @@ fwd_local_mad(
                                                                        ("Client reregister event, setting sm_lid to 0.\n"));\r
                                                                ci_ca_lock_attr(p_spl_qp_svc->obj.p_ci_ca);\r
                                                                p_spl_qp_svc->obj.p_ci_ca->p_pnp_attr->\r
-                                                                       p_port_attr->sm_lid= 0;\r
+                                                                       p_port_attr[p_port_info->local_port_num - 1].sm_lid= 0;\r
                                                                ci_ca_unlock_attr(p_spl_qp_svc->obj.p_ci_ca);\r
                                                        }\r
                                                }\r