From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [iproute PATCH] rdma: Don't pass garbage to rd_check_is_filtered() Date: Mon, 22 Oct 2018 10:07:06 -0700 Message-ID: <20181022100706.666d99f3@xeon-e3> References: <20181018123550.20817-1-phil@nwl.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: Phil Sutter Return-path: Received: from mail-pl1-f172.google.com ([209.85.214.172]:41605 "EHLO mail-pl1-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728709AbeJWB02 (ORCPT ); Mon, 22 Oct 2018 21:26:28 -0400 Received: by mail-pl1-f172.google.com with SMTP id p5-v6so4446242plq.8 for ; Mon, 22 Oct 2018 10:07:09 -0700 (PDT) In-Reply-To: <20181018123550.20817-1-phil@nwl.cc> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 18 Oct 2018 14:35:50 +0200 Phil Sutter wrote: > Variables 'src_port' and 'dst_port' are initialized only if attributes > RDMA_NLDEV_ATTR_RES_SRC_ADDR or RDMA_NLDEV_ATTR_RES_DST_ADDR are > present. Make sure to pass them over to rd_check_is_filtered() only if > that is the case. > > Fixes: 9a362cc71a455 ("rdma: Add CM_ID resource tracking information") > Signed-off-by: Phil Sutter Applied, thanks.