[PATCH] net: ethernet: mediatek: ppe: fix wrong size passed to memset()

Felix Fietkau nbd at nbd.name
Tue May 10 22:05:43 PDT 2022


On 11.05.22 05:08, Yang Yingliang wrote:
> '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 <yangyingliang at huawei.com>

Acked-by: Felix Fietkau <nbd at nbd.name>

Thanks,

- Felix




More information about the linux-arm-kernel mailing list