From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4880F45948; Fri, 18 Oct 2024 02:20:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729218049; cv=none; b=qV6cuys3eqhQoWwpXgq4n/0+i5UQAdqX23ajU7sBz6vxUWFsnXY4p+luG/akd5V6JEuaJY99ZHaNfOYylg7ytiajdL3xOtbXu4i7XdE7Mp+DPNf3l0tYoRhjexHsN1FRwWXpwD/durgVNLpDuWOaFNL8QUcgvCqZcnWkEJy3/94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729218049; c=relaxed/simple; bh=pu+oZIsoTtrDVWClrzUnCzMIb2Wi3VEP6J0eQ4U33ww=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=YiWh43YCf52oIitt+hDkBgrFfZWKOIKs9ch1FIRjM1/otRoq96ds7PhnZmqYCsdAQzmcU71rbKwhcq7JY5anPxLe8PoeQq652vQkh2vXK+/j7J0r/mfDWZ1SIyfDLM4hI8ibY4rvw8dlX92pwavQYr+GlEfiq9zcbo0ldclmV2A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.163]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4XV7hH4DkLz20qXL; Fri, 18 Oct 2024 10:19:59 +0800 (CST) Received: from dggpemf500002.china.huawei.com (unknown [7.185.36.57]) by mail.maildlp.com (Postfix) with ESMTPS id 87E05180041; Fri, 18 Oct 2024 10:20:45 +0800 (CST) Received: from huawei.com (10.175.101.6) by dggpemf500002.china.huawei.com (7.185.36.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 18 Oct 2024 10:20:44 +0800 From: Yue Haibing To: , , , , , , , , , , , , , , , , , CC: , , , , Subject: [PATCH v2 net 0/4] Fix passing 0 to ERR_PTR in intel ether drivers Date: Fri, 18 Oct 2024 10:37:30 +0800 Message-ID: <20241018023734.1912166-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemf500002.china.huawei.com (7.185.36.57) Fixing sparse error in xdp run code by introducing new variable xdp_res instead of overloading this into the skb pointer as i40e drivers done in commit 12738ac4754e ("i40e: Fix sparse errors in i40e_txrx.c") and commit ae4393dfd472 ("i40e: fix broken XDP support"). v2: Fix this as i40e drivers done instead of return NULL in xdp run code Yue Haibing (4): igc: Fix passing 0 to ERR_PTR in igc_xdp_run_prog() igb: Fix passing 0 to ERR_PTR in igb_run_xdp() ixgbe: Fix passing 0 to ERR_PTR in ixgbe_run_xdp() ixgbevf: Fix passing 0 to ERR_PTR in ixgbevf_run_xdp() drivers/net/ethernet/intel/igb/igb_main.c | 22 +++++++----------- drivers/net/ethernet/intel/igc/igc_main.c | 20 ++++++---------- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 23 ++++++++----------- .../net/ethernet/intel/ixgbevf/ixgbevf_main.c | 23 ++++++++----------- 4 files changed, 34 insertions(+), 54 deletions(-) -- 2.34.1