aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_txrx.c
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2023-02-17 01:39:08 +0000
committerJakub Kicinski <[email protected]>2023-02-20 19:45:33 +0000
commit01bb11ad828b320749764fa93ad078db20d08a9e (patch)
tree7c85bb1f6473ba62607a6a37b1d75f1660d6620a /drivers/net/ethernet/intel/ice/ice_txrx.c
parentnet: bcmgenet: Support wake-up from s2idle (diff)
downloadkernel-01bb11ad828b320749764fa93ad078db20d08a9e.tar.gz
kernel-01bb11ad828b320749764fa93ad078db20d08a9e.zip
sched/topology: fix KASAN warning in hop_cmp()
Despite that prev_hop is used conditionally on cur_hop is not the first hop, it's initialized unconditionally. Because initialization implies dereferencing, it might happen that the code dereferences uninitialized memory, which has been spotted by KASAN. Fix it by reorganizing hop_cmp() logic. Reported-by: Bruno Goncalves <[email protected]> Fixes: cd7f55359c90 ("sched: add sched_numa_find_nth_cpu()") Signed-off-by: Yury Norov <[email protected]> Link: https://lore.kernel.org/r/Y+7avK6V9SyAWsXi@yury-laptop/ Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_txrx.c')
0 files changed, 0 insertions, 0 deletions