From patchwork Mon Jan 4 19:15:30 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 70702 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o04JHGQ7005972 for ; Mon, 4 Jan 2010 19:17:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753847Ab0ADTRH (ORCPT ); Mon, 4 Jan 2010 14:17:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753882Ab0ADTRH (ORCPT ); Mon, 4 Jan 2010 14:17:07 -0500 Received: from qmta12.westchester.pa.mail.comcast.net ([76.96.59.227]:36428 "EHLO QMTA12.westchester.pa.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753847Ab0ADTRF (ORCPT ); Mon, 4 Jan 2010 14:17:05 -0500 Received: from OMTA01.westchester.pa.mail.comcast.net ([76.96.62.11]) by QMTA12.westchester.pa.mail.comcast.net with comcast id RQJ61d0040EZKEL5CXH3ra; Mon, 04 Jan 2010 19:17:03 +0000 Received: from hal.comcast.net ([75.69.247.31]) by OMTA01.westchester.pa.mail.comcast.net with comcast id RXH21d00T0hNrtn3MXH2sY; Mon, 04 Jan 2010 19:17:03 +0000 Received: from hal.comcast.net (localhost.localdomain [127.0.0.1]) by hal.comcast.net (8.14.3/8.14.3) with ESMTP id o04JFmYR021498; Mon, 4 Jan 2010 14:15:54 -0500 Received: (from hnrose@localhost) by hal.comcast.net (8.14.3/8.14.3/Submit) id o04JFVIx021468; Mon, 4 Jan 2010 14:15:31 -0500 Date: Mon, 4 Jan 2010 14:15:30 -0500 From: Hal Rosenstock To: sashak@voltaire.com Cc: linux-rdma@vger.kernel.org Subject: [PATCH] opensm/osm_vl_arb_rcv.c: Dump table after validating block number Message-ID: <20100104191530.GA21463@comcast.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/opensm/opensm/osm_vl_arb_rcv.c b/opensm/opensm/osm_vl_arb_rcv.c index bc15a55..823a9ca 100644 --- a/opensm/opensm/osm_vl_arb_rcv.c +++ b/opensm/opensm/osm_vl_arb_rcv.c @@ -2,6 +2,7 @@ * Copyright (c) 2004-2009 Voltaire, Inc. All rights reserved. * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved. * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. + * Copyright (c) 2010 HNR Consulting. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU @@ -134,15 +135,14 @@ void osm_vla_rcv_process(IN void *context, IN void *data) goto Exit; } - osm_dump_vl_arb_table(sm->p_log, - port_guid, block_num, - port_num, p_vla_tbl, OSM_LOG_DEBUG); - if ((block_num < 1) || (block_num > 4)) { OSM_LOG(sm->p_log, OSM_LOG_ERROR, "Got invalid block number 0x%X\n", block_num); goto Exit; } + + osm_dump_vl_arb_table(sm->p_log, port_guid, block_num, port_num, + p_vla_tbl, OSM_LOG_DEBUG); osm_physp_set_vla_tbl(p_physp, p_vla_tbl, block_num); Exit: