Message ID | 20250130141115.950749-17-jsimmons@infradead.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <lustre-devel-bounces@lists.lustre.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from pdx1-mailman-customer002.dreamhost.com (listserver-buz.dreamhost.com [69.163.136.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CB402C0218F for <lustre-devel@archiver.kernel.org>; Thu, 30 Jan 2025 14:49:23 +0000 (UTC) Received: from pdx1-mailman-customer002.dreamhost.com (localhost [127.0.0.1]) by pdx1-mailman-customer002.dreamhost.com (Postfix) with ESMTP id 4YkLlt0fPyz22Sn; Thu, 30 Jan 2025 06:20:42 -0800 (PST) Received: from smtp4.ccs.ornl.gov (smtp4.ccs.ornl.gov [160.91.203.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by pdx1-mailman-customer002.dreamhost.com (Postfix) with ESMTPS id 4YkLbM6ps7z1y8x for <lustre-devel@lists.lustre.org>; Thu, 30 Jan 2025 06:13:19 -0800 (PST) Received: from star2.ccs.ornl.gov (ltm3-e204-208.ccs.ornl.gov [160.91.203.26]) by smtp4.ccs.ornl.gov (Postfix) with ESMTP id 20B9718236D; Thu, 30 Jan 2025 09:11:33 -0500 (EST) Received: by star2.ccs.ornl.gov (Postfix, from userid 2004) id 1E6E8106BE18; Thu, 30 Jan 2025 09:11:33 -0500 (EST) From: James Simmons <jsimmons@infradead.org> To: Andreas Dilger <adilger@whamcloud.com>, Oleg Drokin <green@whamcloud.com>, NeilBrown <neilb@suse.de> Date: Thu, 30 Jan 2025 09:11:06 -0500 Message-ID: <20250130141115.950749-17-jsimmons@infradead.org> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20250130141115.950749-1-jsimmons@infradead.org> References: <20250130141115.950749-1-jsimmons@infradead.org> MIME-Version: 1.0 Subject: [lustre-devel] [PATCH 16/25] lnet: Check empty list in cfs_match_nid_net X-BeenThere: lustre-devel@lists.lustre.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: "For discussing Lustre software development." <lustre-devel-lustre.org> List-Unsubscribe: <http://lists.lustre.org/options.cgi/lustre-devel-lustre.org>, <mailto:lustre-devel-request@lists.lustre.org?subject=unsubscribe> List-Archive: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/> List-Post: <mailto:lustre-devel@lists.lustre.org> List-Help: <mailto:lustre-devel-request@lists.lustre.org?subject=help> List-Subscribe: <http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org>, <mailto:lustre-devel-request@lists.lustre.org?subject=subscribe> Cc: Chris Horn <chris.horn@hpe.com>, Frank Sehr <fsehr@whamcloud.com>, Serguei Smirnov <ssmirnov@whamcloud.com>, Cyril Bordage <cbordage@whamcloud.com>, Lustre Development List <lustre-devel@lists.lustre.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: lustre-devel-bounces@lists.lustre.org Sender: "lustre-devel" <lustre-devel-bounces@lists.lustre.org> |
Series |
lustre: sync to OpenSFS branch April 30, 2023
|
expand
|
diff --git a/net/lnet/lnet/nidstrings.c b/net/lnet/lnet/nidstrings.c index d235048a8ff0..05a9b3275624 100644 --- a/net/lnet/lnet/nidstrings.c +++ b/net/lnet/lnet/nidstrings.c @@ -822,11 +822,11 @@ cfs_match_nid_net(struct lnet_nid *nid, u32 net_type, u32 address; struct netstrfns *nf; - if (!addr || !net_num_list) + if (!addr || list_empty(addr) || !net_num_list) return 0; nf = type2net_info(LNET_NETTYP(LNET_NID_NET(nid))); - if (!nf || !net_num_list || !addr) + if (!nf) return 0; /* FIXME handle long-addr nid */