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 AB2664404F; Wed, 12 Jun 2024 17:14:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 34C1542E85; Wed, 12 Jun 2024 17:05:18 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id B44B742E59 for ; Wed, 12 Jun 2024 17:05:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204711; x=1749740711; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jsZVysybfzsqNiFjZ1IgMHMt9ovH7aCcxcCFSml780s=; b=W7+FdLA8oIcoHBmMYvX9xgsmjRw5a7Dkle+VAf1P5TO6VrZKD/YMoJ0F H2xJB4xZwhlbq29oG8KqnyC86Sq0mcwl+FCE+/O4mkN1ScIFVATIUtIip QSUmVFOXeBAVoSl9XKE/qLS71nCylFDRHR1DYtidWrpx2lT8Yv9FY/h20 L6Jg6pJyw9r2OnPSE0CQbA4wLFA0shEhpCb7zfrPk+TPCtC/Dw9dhESBZ j2z9W9IsOFfVRDHX3pm6e/8O77XYSCoS6gFbikqKuIRJ8j7PLTVJFOCI1 73D0RlsKwksUsMYZQ9kIHtvYqzl5tyciRw+fhxbsoZGg0S018yjE9c7wD A==; X-CSE-ConnectionGUID: rwlplp+XS32cAPpqw6PIRw== X-CSE-MsgGUID: sEwj/VkQQgimabQh0ivljQ== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32459583" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32459583" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 08:05:03 -0700 X-CSE-ConnectionGUID: agMPvHjfQo+5RJZ1DCm5wg== X-CSE-MsgGUID: gTZakQc1RZ+zW5DlKrYWEQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39925434" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:05:01 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Jacob Keller Subject: [PATCH v2 063/148] net/ice/base: enable RDMA Act-Act unload paths Date: Wed, 12 Jun 2024 16:00:57 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20240430154014.1026-1-ian.stokes@intel.com> 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: Ian Stokes 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