]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mediatek: ppe: fix wrong size passed to memset()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 11 May 2022 03:08:29 +0000 (11:08 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 12 May 2022 07:44:14 +0000 (09:44 +0200)
commite7b40db738a726ba1c3d21469b4791ebce448a30
treed14798d361ac8faeec2d25dd9b8aacfc767ef079
parent13526fc1f8418898654d3566b0d20d9e921c5e18
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: 3c678fdfc9d3 ("net: ethernet: mtk_eth_soc: add support for initializing the PPE")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20220511030829.3308094-1-yangyingliang@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mediatek/mtk_ppe.c