]> Git Repo - linux.git/commit
net: ethernet: mediatek: ppe: fix wrong size passed to memset()
authorYang Yingliang <[email protected]>
Wed, 11 May 2022 03:08:29 +0000 (11:08 +0800)
committerPaolo Abeni <[email protected]>
Thu, 12 May 2022 07:44:14 +0000 (09:44 +0200)
commit00832b1d1a393dfb1b9491d085e5b27e8c25d103
treed14798d361ac8faeec2d25dd9b8aacfc767ef079
parenta48ab883c4a9289694b82cacd95385b8f2367b20
net: ethernet: mediatek: ppe: fix wrong size passed to memset()

'foe_table' is a pointer, the real size of struct mtk_foe_entry
should be pass to memset().

Fixes: ba37b7caf1ed ("net: ethernet: mtk_eth_soc: add support for initializing the PPE")
Signed-off-by: Yang Yingliang <[email protected]>
Acked-by: Felix Fietkau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
drivers/net/ethernet/mediatek/mtk_ppe.c
This page took 0.051804 seconds and 4 git commands to generate.