Skip to content

Commit 62c30c5

Browse files
LGA1150Paolo Abeni
authored andcommitted
net: ethernet: mtk_ppe: add RCU lock around dev_fill_forward_path
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 4611d88 commit 62c30c5

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)