]> Git Repo - linux.git/commit
ice: set tx_tstamps when creating new Tx rings via ethtool
authorJacob Keller <[email protected]>
Wed, 27 Jul 2022 23:15:57 +0000 (16:15 -0700)
committerTony Nguyen <[email protected]>
Tue, 16 Aug 2022 16:04:37 +0000 (09:04 -0700)
commitb3b173745c8cab1e24d6821488b60abed3acb24d
treea1ec88a3e953bc99e3c6355f141aa372caac806a
parent7ebfc85e2cd7b08f518b526173e9a33b56b3913b
ice: set tx_tstamps when creating new Tx rings via ethtool

When the user changes the number of queues via ethtool, the driver
allocates new rings. This allocation did not initialize tx_tstamps. This
results in the tx_tstamps field being zero (due to kcalloc allocation), and
would result in a NULL pointer dereference when attempting a transmit
timestamp on the new ring.

Signed-off-by: Jacob Keller <[email protected]>
Tested-by: Gurucharan <[email protected]> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <[email protected]>
drivers/net/ethernet/intel/ice/ice_ethtool.c
This page took 0.055451 seconds and 4 git commands to generate.