kernel_samsung_a53x/drivers/net/ethernet/intel
Aleksandr Mishin 30705ece9d ice: Adjust over allocation of memory in ice_sched_add_root_node() and ice_sched_add_node()
[ Upstream commit 62fdaf9e8056e9a9e6fe63aa9c816ec2122d60c6 ]

In ice_sched_add_root_node() and ice_sched_add_node() there are calls to
devm_kcalloc() in order to allocate memory for array of pointers to
'ice_sched_node' structure. But incorrect types are used as sizeof()
arguments in these calls (structures instead of pointers) which leads to
over allocation of memory.

Adjust over allocation of memory by correcting types in devm_kcalloc()
sizeof() arguments.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:37 +01:00
..
e1000 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e1000e Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fm10k Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i40e i40e: Report MFS in decimal base instead of hex 2024-11-19 11:32:38 +01:00
iavf iavf: Fix TC config comparison with existing adapter TC config 2024-11-19 11:32:38 +01:00
ice ice: Adjust over allocation of memory in ice_sched_add_root_node() and ice_sched_add_node() 2024-11-23 23:21:37 +01:00
igb igb: Fix not clearing TimeSync interrupts for 82580 2024-11-23 23:21:04 +01:00
igbvf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
igc igc: Unlock on error in igc_io_resume() 2024-11-23 23:21:04 +01:00
ixgb Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ixgbe ixgbe: avoid sleeping allocation in ixgbe_ipsec_vf_add_sa() 2024-11-19 09:22:44 +01:00
ixgbevf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e100.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00