projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0784c25
)
eth: mtk_ppe: fix up after merge
author
Jakub Kicinski
<kuba@kernel.org>
Fri, 20 May 2022 01:25:55 +0000
(18:25 -0700)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 20 May 2022 04:45:56 +0000
(21:45 -0700)
I missed this in the barrage of GCC 12 warnings. Commit
cf2df74e202d
("net: fix dev_fill_forward_path with pppoe + bridge") changed
the pointer into an array.
Fixes:
d7e6f5836038
("Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net")
Link:
https://lore.kernel.org/r/20220520012555.2262461-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_ppe_offload.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
b/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
index
1fe3105
..
c935307
100644
(file)
--- a/
drivers/net/ethernet/mediatek/mtk_ppe_offload.c
+++ b/
drivers/net/ethernet/mediatek/mtk_ppe_offload.c
@@
-90,10
+90,11
@@
mtk_flow_get_wdma_info(struct net_device *dev, const u8 *addr, struct mtk_wdma_i
{
struct net_device_path_ctx ctx = {
.dev = dev,
- .daddr = addr,
};
struct net_device_path path = {};
+ memcpy(ctx.daddr, addr, sizeof(ctx.daddr));
+
if (!IS_ENABLED(CONFIG_NET_MEDIATEK_SOC_WED))
return -1;