Skip to content

Commit d5cdb78

Browse files
LGA1150gregkh
authored andcommitted
net: ethernet: mtk_ppe: add RCU lock around dev_fill_forward_path
[ Upstream commit 62c30c5 ] Ensure ndo_fill_forward_path() is called with RCU lock held. Fixes: 2830e31 ("net: ethernet: mtk-ppe: fix traffic offload with bridged wlan") Signed-off-by: Qingfang Deng <dqfext@gmail.com> Link: https://patch.msgid.link/20250814012559.3705-1-dqfext@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent aaf17a3 commit d5cdb78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/mediatek/mtk_ppe_offload.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ mtk_flow_get_wdma_info(struct net_device *dev, const u8 *addr, struct mtk_wdma_i
101101
if (!IS_ENABLED(CONFIG_NET_MEDIATEK_SOC_WED))
102102
return -1;
103103

104+
rcu_read_lock();
104105
err = dev_fill_forward_path(dev, addr, &stack);
106+
rcu_read_unlock();
105107
if (err)
106108
return err;
107109

0 commit comments

Comments
 (0)