]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ice: initialize ring_stats->syncp
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 20 Nov 2025 20:20:41 +0000 (12:20 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Jan 2026 09:27:32 +0000 (10:27 +0100)
commita6a0dd00178ea546299908d23f2eb5625f24d59f
tree96845b9fe3f48b5cb9ce237e31ba12ce57d1bca5
parente635e5b7eac83e547511c8277b42f85d8cd69eb7
ice: initialize ring_stats->syncp

[ Upstream commit 8439016c3b8b5ab687c2420317b1691585106611 ]

The u64_stats_sync structure is empty on 64-bit systems. However, on 32-bit
systems it contains a seqcount_t which needs to be initialized. While the
memory is zero-initialized, a lack of u64_stats_init means that lockdep
won't get initialized properly. Fix this by adding u64_stats_init() calls
to the rings just after allocation.

Fixes: 2b245cb29421 ("ice: Implement transmit and NAPI support")
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Rinitha S <sx.rinitha@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>
drivers/net/ethernet/intel/ice/ice_lib.c