Commit 62c30c54 authored by Qingfang Deng's avatar Qingfang Deng Committed by Paolo Abeni
Browse files

net: ethernet: mtk_ppe: add RCU lock around dev_fill_forward_path



Ensure ndo_fill_forward_path() is called with RCU lock held.

Fixes: 2830e314 ("net: ethernet: mtk-ppe: fix traffic offload with bridged wlan")
Signed-off-by: default avatarQingfang Deng <dqfext@gmail.com>
Link: https://patch.msgid.link/20250814012559.3705-1-dqfext@gmail.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 4611d88a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -101,7 +101,9 @@ mtk_flow_get_wdma_info(struct net_device *dev, const u8 *addr, struct mtk_wdma_i
	if (!IS_ENABLED(CONFIG_NET_MEDIATEK_SOC_WED))
		return -1;

	rcu_read_lock();
	err = dev_fill_forward_path(dev, addr, &stack);
	rcu_read_unlock();
	if (err)
		return err;