public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
From: Howard Wang <howard_wang@realsil.com.cn>
To: <dev@dpdk.org>
Cc: <pro_nic_dpdk@realtek.com>, Howard Wang <howard_wang@realsil.com.cn>
Subject: [PATCH v1 01/12] net/r8169: fix NULL pointer dereference in rtl8168fp_ops
Date: Mon, 9 Feb 2026 16:54:51 +0800	[thread overview]
Message-ID: <20260209085502.26722-2-howard_wang@realsil.com.cn> (raw)
In-Reply-To: <20260209085502.26722-1-howard_wang@realsil.com.cn>

Signed-off-by: Howard Wang <howard_wang@realsil.com.cn>
---
 drivers/net/r8169/base/rtl8168fp.c     | 1 +
 drivers/net/r8169/base/rtl8168fp.h     | 1 +
 drivers/net/r8169/base/rtl8168fp_mcu.c | 6 ++++++
 3 files changed, 8 insertions(+)

diff --git a/drivers/net/r8169/base/rtl8168fp.c b/drivers/net/r8169/base/rtl8168fp.c
index b8a058bbd9..9aa3cabeb8 100644
--- a/drivers/net/r8169/base/rtl8168fp.c
+++ b/drivers/net/r8169/base/rtl8168fp.c
@@ -192,4 +192,5 @@ const struct rtl_hw_ops rtl8168fp_ops = {
 	.hw_ephy_config    = hw_ephy_config_8168fp,
 	.hw_phy_config     = hw_phy_config_8168fp,
 	.hw_mac_mcu_config = hw_mac_mcu_config_8168fp,
+	.hw_phy_mcu_config = hw_phy_mcu_config_8168fp,
 };
diff --git a/drivers/net/r8169/base/rtl8168fp.h b/drivers/net/r8169/base/rtl8168fp.h
index 4613fe9a98..194f14af4e 100644
--- a/drivers/net/r8169/base/rtl8168fp.h
+++ b/drivers/net/r8169/base/rtl8168fp.h
@@ -10,5 +10,6 @@
 extern const struct rtl_hw_ops rtl8168fp_ops;
 
 void hw_mac_mcu_config_8168fp(struct rtl_hw *hw);
+void hw_phy_mcu_config_8168fp(struct rtl_hw *hw __rte_unused);
 
 #endif
diff --git a/drivers/net/r8169/base/rtl8168fp_mcu.c b/drivers/net/r8169/base/rtl8168fp_mcu.c
index 839dcfde61..7757e5f448 100644
--- a/drivers/net/r8169/base/rtl8168fp_mcu.c
+++ b/drivers/net/r8169/base/rtl8168fp_mcu.c
@@ -268,3 +268,9 @@ hw_mac_mcu_config_8168fp(struct rtl_hw *hw)
 		break;
 	}
 }
+
+void
+hw_phy_mcu_config_8168fp(struct rtl_hw *hw __rte_unused)
+{
+	/* Do nothing */
+}
-- 
2.34.1


  reply	other threads:[~2026-02-09  8:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-09  8:54 [PATCH v1 00/12] net/r8169: update driver with new HW support and fixes Howard Wang
2026-02-09  8:54 ` Howard Wang [this message]
2026-02-09  8:54 ` [PATCH v1 02/12] net/r8169: tune RX desc fetch num for 8126 and 8127 Howard Wang
2026-02-09  8:54 ` [PATCH v1 03/12] net/r8169: add support for RTL8168KD Howard Wang
2026-02-09  8:54 ` [PATCH v1 04/12] net/r8169: update hardware configurations for 8127 Howard Wang
2026-02-09  8:54 ` [PATCH v1 05/12] net/r8169: adjust jumbo frame size limit for non-1G cards Howard Wang
2026-02-09  8:54 ` [PATCH v1 06/12] net/r8169: remove support for CFG_METHOD_69 Howard Wang
2026-02-09  8:54 ` [PATCH v1 07/12] net/r8169: update hardware configurations for 8126 Howard Wang
2026-02-09  8:54 ` [PATCH v1 08/12] net/r8169: update hardware configurations for 8125 Howard Wang
2026-02-09  8:54 ` [PATCH v1 09/12] net/r8169: add support for RTL9151 Howard Wang
2026-02-09  8:55 ` [PATCH v1 10/12] net/r8169: add support for RTL8125K Howard Wang
2026-02-09  8:55 ` [PATCH v1 11/12] net/r8169: fix one bug about RTL8168KB Howard Wang
2026-02-09  8:55 ` [PATCH v1 12/12] net/r8169: ensure the old mapping is used Howard Wang
2026-02-09 19:26 ` [PATCH v1 00/12] net/r8169: update driver with new HW support and fixes Stephen Hemminger
2026-02-09 19:44 ` Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260209085502.26722-2-howard_wang@realsil.com.cn \
    --to=howard_wang@realsil.com.cn \
    --cc=dev@dpdk.org \
    --cc=pro_nic_dpdk@realtek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox