]> git.ipfire.org Git - thirdparty/linux.git/commit
net: ethernet: mtk_eth_soc: pass eth to mtk_handle_irq_rx in poll_controller
authorChenguang Zhao <zhaochenguang@kylinos.cn>
Thu, 23 Jul 2026 05:57:35 +0000 (13:57 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 28 Jul 2026 13:53:49 +0000 (15:53 +0200)
commite095f249e2209674f6366f6db0383a2b96e19239
tree70a69371f4f1b67732d208b0afe2e7db0036fffb
parent080695e6f005e2396f1207fd69d24c442cb230c6
net: ethernet: mtk_eth_soc: pass eth to mtk_handle_irq_rx in poll_controller

mtk_handle_irq_rx expects a struct mtk_eth * (matching the request_irq
cookie), but mtk_poll_controller incorrectly passed the net_device *.
Calling ndo_poll_controller with CONFIG_NET_POLL_CONTROLLER enabled
would then crash.

Fixes: 8186f6e382d8 ("net-next: mediatek: fix compile error inside mtk_poll_controller()")
Signed-off-by: Chenguang Zhao <zhaochenguang@kylinos.cn>
Link: https://patch.msgid.link/20260723055735.885112-1-chenguang.zhao@linux.dev
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mediatek/mtk_eth_soc.c