]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: stmmac: intel: populate entire system_counterval_t in get_time_fn() callback
authorMarkus Blöchl <markus@blochl.de>
Sun, 13 Jul 2025 20:21:41 +0000 (22:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2025 06:58:29 +0000 (08:58 +0200)
commit518ec212e89f91997284f56c84b1c2c3c0feb9fa
treeed106bffe1fd79da9d5f8432d242a46ea174a427
parentdafbcf8f16955f9bcbca19442966ad9200bd568d
net: stmmac: intel: populate entire system_counterval_t in get_time_fn() callback

commit e6176ab107ec6e57a752a97ba9f7c34a23034262 upstream.

get_time_fn() callback implementations are expected to fill out the
entire system_counterval_t struct as it may be initially uninitialized.

This broke with the removal of convert_art_to_tsc() helper functions
which left use_nsecs uninitialized.

Initially assign the entire struct with default values.

Fixes: f5e1d0db3f02 ("stmmac: intel: Remove convert_art_to_tsc()")
Cc: stable@vger.kernel.org
Signed-off-by: Markus Blöchl <markus@blochl.de>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250713-stmmac_crossts-v1-1-31bfe051b5cb@blochl.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c