From patchwork Wed Mar 23 01:23:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Chu X-Patchwork-Id: 654001 X-Patchwork-Delegate: alexne@voltaire.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2N1X7qw028165 for ; Wed, 23 Mar 2011 01:33:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754033Ab1CWBdF (ORCPT ); Tue, 22 Mar 2011 21:33:05 -0400 Received: from nspiron-2.llnl.gov ([128.115.41.82]:14422 "EHLO nspiron-2.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752981Ab1CWBdE (ORCPT ); Tue, 22 Mar 2011 21:33:04 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 23 Mar 2011 01:33:07 +0000 (UTC) X-Greylist: delayed 572 seconds by postgrey-1.27 at vger.kernel.org; Tue, 22 Mar 2011 21:33:04 EDT X-Attachments: None Received: from auk59.llnl.gov (HELO [134.9.93.24]) ([134.9.93.24]) by nspiron-2.llnl.gov with ESMTP; 22 Mar 2011 18:23:31 -0700 Subject: [opensm] routing segfault + LMC > 0 routing bug? From: Albert Chu To: jaschut@sandia.gov, alexne@mellanox.com Cc: linux-rdma@vger.kernel.org Date: Tue, 22 Mar 2011 18:23:32 -0700 Message-Id: <1300843412.3128.135.camel@auk59.llnl.gov> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-19.el5) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/opensm/osm_ucast_mgr.c b/opensm/osm_ucast_mgr.c index 4019589..211d6e0 100644 --- a/opensm/osm_ucast_mgr.c +++ b/opensm/osm_ucast_mgr.c @@ -318,10 +318,6 @@ static void alloc_ports_priv(osm_ucast_mgr_t * mgr) item = cl_qmap_next(item)) { port = (osm_port_t *) item; lmc = ib_port_info_get_lmc(&port->p_physp->port_info); - if (!lmc) { - port->priv = NULL; - continue; - } r = malloc(sizeof(*r) + sizeof(r->guids[0]) * (1 << lmc)); if (!r) { OSM_LOG(mgr->p_log, OSM_LOG_ERROR, "ERR 3A09: "