aboutsummaryrefslogtreecommitdiffstats
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2022-07-27 16:15:57 -0700
committerTony Nguyen <anthony.l.nguyen@intel.com>2022-08-16 09:04:37 -0700
commitb3b173745c8cab1e24d6821488b60abed3acb24d (patch)
treea1ec88a3e953bc99e3c6355f141aa372caac806a /lib/memory-notifier-error-inject.c
parentMerge tag 'net-6.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (diff)
downloadlinux-rng-b3b173745c8cab1e24d6821488b60abed3acb24d.tar.xz
linux-rng-b3b173745c8cab1e24d6821488b60abed3acb24d.zip
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 <jacob.e.keller@intel.com> Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions