aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorRand Deeb <[email protected]>2024-02-28 15:54:48 +0000
committerTony Nguyen <[email protected]>2024-03-05 17:49:27 +0000
commit06e456a05d669ca30b224b8ed962421770c1496c (patch)
treea8d5b00bd17a32bea752d815d315848de7f30ff3 /drivers/net/ethernet/intel/igc/igc_main.c
parentice: virtchnl: stop pretending to support RSS over AQ or registers (diff)
downloadkernel-06e456a05d669ca30b224b8ed962421770c1496c.tar.gz
kernel-06e456a05d669ca30b224b8ed962421770c1496c.zip
net: ice: Fix potential NULL pointer dereference in ice_bridge_setlink()
The function ice_bridge_setlink() may encounter a NULL pointer dereference if nlmsg_find_attr() returns NULL and br_spec is dereferenced subsequently in nla_for_each_nested(). To address this issue, add a check to ensure that br_spec is not NULL before proceeding with the nested attribute iteration. Fixes: b1edc14a3fbf ("ice: Implement ice_bridge_getlink and ice_bridge_setlink") Signed-off-by: Rand Deeb <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions