diff options
| author | Duoming Zhou <[email protected]> | 2024-03-08 14:25:40 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-03-11 22:54:01 +0000 |
| commit | 84e95149bd341705f0eca6a7fcb955c548805002 (patch) | |
| tree | 72c9f7385b67c3d49f3c1ed5486fd53851f01803 /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | r8152: fix unknown device for choose_configuration (diff) | |
| download | kernel-84e95149bd341705f0eca6a7fcb955c548805002.tar.gz kernel-84e95149bd341705f0eca6a7fcb955c548805002.zip | |
nfp: flower: handle acti_netdevs allocation failure
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 <[email protected]>
Reviewed-by: Louis Peens <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions
