From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3551E454EF; Tue, 25 Jun 2024 13:21:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3551642F15; Tue, 25 Jun 2024 13:17:53 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id EE05A427DE for ; Tue, 25 Jun 2024 13:16:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314212; x=1750850212; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+DZjPj/1zSB6ABMIxYTLAk7COK1TWdp0JEQEOXoGZWI=; b=ia0Ioq0OD+utAvnBtXD41xwGUfLbcL+zz11GK1XiudlB9ReOVKbtQGTr KmD0r0qVVCa0tSsn684oM47kV+udWsnsiQZjuwv6byvIYTMWhnCSA52XB ZW2pAaElwhozLhrZianwF+vXObredLSmJb767plzY7wI1vIEL0Pda8Grh 9j1rkM13HkTMHWws4Q0DoeJ2fHtiV/IQNNhalPPdn1fjuBClMOMHUhTCL RlYAp3uzVFL8A87QoC/UGZQRgmZT+rpm/fRzl73wPjwB9kCG0/a09NYXm RS2f/ErRlDEpkoBOOeE+6jSqzLociL5AjbcTBegUXXcYr3pCvMIwmLZ3P Q==; X-CSE-ConnectionGUID: xnl3JlnDQdaKPSiGgxRJfQ== X-CSE-MsgGUID: req6LGPQSwiUvlnw/Lm/6A== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080240" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080240" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2024 04:16:22 -0700 X-CSE-ConnectionGUID: 2K+m7I27Qy2egUWhcopO/Q== X-CSE-MsgGUID: ZxcKU/CgRemEWr0Yd435Ww== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43719206" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:16:22 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Jacob Keller , bruce.richardson@intel.com, ian.stokes@intel.com Subject: [PATCH v3 050/129] net/ice/base: enable RDMA Act-Act unload paths Date: Tue, 25 Jun 2024 12:12:55 +0100 Message-ID: <26fadafb8ce0450d912c90fe0fc9e0dcc6f1eeeb.1719313663.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Jacob Keller In certain unload conditions the non-standard paths to breaking down the bond supporting resources need special considerations in that there could be nodes moved out of the tree and this can cause a NULL pointer to be passed into the find node by teid function. Add in a NULL pointer check to handle these situations Signed-off-by: Jacob Keller Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_sched.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ice/base/ice_sched.c b/drivers/net/ice/base/ice_sched.c index 74d57329da..af8f8cc7a9 100644 --- a/drivers/net/ice/base/ice_sched.c +++ b/drivers/net/ice/base/ice_sched.c @@ -56,6 +56,9 @@ ice_sched_find_node_by_teid(struct ice_sched_node *start_node, u32 teid) { u16 i; + if (!start_node) + return NULL; + /* The TEID is same as that of the start_node */ if (ICE_TXSCHED_GET_NODE_TEID(start_node) == teid) return start_node; -- 2.43.0