8e537affc3
[ Upstream commit 84e95149bd341705f0eca6a7fcb955c548805002 ] The kmalloc_array() in nfp_fl_lag_do_work() will return null, if the physical memory has run out. As a result, if we dereference the acti_netdevs, the null pointer dereference bugs will happen. This patch adds a check to judge whether allocation failure occurs. If it happens, the delayed work will be rescheduled and try again. Fixes: bb9a8d031140 ("nfp: flower: monitor and offload LAG groups") Signed-off-by: Duoming Zhou <duoming@zju.edu.cn> Reviewed-by: Louis Peens <louis.peens@corigine.com> Link: https://lore.kernel.org/r/20240308142540.9674-1-duoming@zju.edu.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org> |
||
---|---|---|
.. | ||
abm | ||
bpf | ||
crypto | ||
flower | ||
nfpcore | ||
nic | ||
ccm.c | ||
ccm.h | ||
ccm_mbox.c | ||
devlink_param.c | ||
Makefile | ||
nfp_abi.h | ||
nfp_app.c | ||
nfp_app.h | ||
nfp_app_nic.c | ||
nfp_asm.c | ||
nfp_asm.h | ||
nfp_devlink.c | ||
nfp_hwmon.c | ||
nfp_main.c | ||
nfp_main.h | ||
nfp_net.h | ||
nfp_net_common.c | ||
nfp_net_ctrl.c | ||
nfp_net_ctrl.h | ||
nfp_net_debugdump.c | ||
nfp_net_debugfs.c | ||
nfp_net_ethtool.c | ||
nfp_net_main.c | ||
nfp_net_repr.c | ||
nfp_net_repr.h | ||
nfp_net_sriov.c | ||
nfp_net_sriov.h | ||
nfp_netvf_main.c | ||
nfp_port.c | ||
nfp_port.h | ||
nfp_shared_buf.c |