aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorShay Drory <[email protected]>2021-12-30 08:54:08 +0200
committerSaeed Mahameed <[email protected]>2022-01-06 16:55:41 -0800
commita1c7c49c2091926962f8c1c866d386febffec5d8 (patch)
tree6ad44c9117108c583fcec37e96edf3be95e81d90 /net/lapb/lapb_in.c
parentb6dfff21a170af5c695ebaa153b7f5e297ddca03 (diff)
net/mlx5: Fix access to sf_dev_table on allocation failure
Even when SF devices are supported, the SF device table allocation can still fail. In such case mlx5_sf_dev_supported still reports true, but SF device table is invalid. This can result in NULL table access. Hence, fix it by adding NULL table check. Fixes: 1958fc2f0712 ("net/mlx5: SF, Add auxiliary device driver") Signed-off-by: Shay Drory <[email protected]> Reviewed-by: Parav Pandit <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions