From patchwork Tue Nov 13 06:31:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honggang LI X-Patchwork-Id: 10679781 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 35FC014BA for ; Tue, 13 Nov 2018 06:31:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 265DF29A29 for ; Tue, 13 Nov 2018 06:31:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A3AF29A3B; Tue, 13 Nov 2018 06:31:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDE5929A29 for ; Tue, 13 Nov 2018 06:31:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727530AbeKMQ2T (ORCPT ); Tue, 13 Nov 2018 11:28:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43740 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbeKMQ2T (ORCPT ); Tue, 13 Nov 2018 11:28:19 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EC14E3082E5F; Tue, 13 Nov 2018 06:31:42 +0000 (UTC) Received: from lhg.nay.redhat.com (unknown [10.66.129.124]) by smtp.corp.redhat.com (Postfix) with ESMTP id 881365C20D; Tue, 13 Nov 2018 06:31:41 +0000 (UTC) From: Honggang LI To: hal@dev.mellanox.co.il Cc: linux-rdma@vger.kernel.org, Honggang Li Subject: [PATCH 2/2] osm_gi_rcv_process: OSM_LOG_ENTER should before CL_ASSERT Date: Tue, 13 Nov 2018 14:31:22 +0800 Message-Id: <20181113063122.13950-2-honli@redhat.com> In-Reply-To: <20181113063122.13950-1-honli@redhat.com> References: <20181113063122.13950-1-honli@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Tue, 13 Nov 2018 06:31:43 +0000 (UTC) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Honggang Li Signed-off-by: Honggang Li --- opensm/osm_guid_info_rcv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opensm/osm_guid_info_rcv.c b/opensm/osm_guid_info_rcv.c index f4d0592e..ea3c2c56 100644 --- a/opensm/osm_guid_info_rcv.c +++ b/opensm/osm_guid_info_rcv.c @@ -74,10 +74,9 @@ void osm_gi_rcv_process(IN void *context, IN void *data) ib_net64_t port_guid, node_guid; uint8_t block_num; - CL_ASSERT(sm); - OSM_LOG_ENTER(sm->p_log); + CL_ASSERT(sm); CL_ASSERT(p_madw); p_smp = osm_madw_get_smp_ptr(p_madw);