summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2026-06-09 21:33:53 +0300
committerPaolo Abeni <pabeni@redhat.com>2026-06-11 16:44:55 +0300
commit518d8d0199538a4d6d5e51064044ece71e0c42e7 (patch)
treeb59a8b027a6b3c3c331ce16f46ad7d5e9cea5edc /tools/lib/python
parent6e12a8894e027ed33c562e2bf993ab61a7e2b75d (diff)
downloadlinux-518d8d0199538a4d6d5e51064044ece71e0c42e7.tar.xz
net: sched: avoid printing uninitialized link speed
sch_cbs and sch_taprio print ecmd.base.speed, even if netif_get_link_ksettings() failed. When netif_get_link_ksettings() fails the ecmd may not be initialized. Use the always-initialized speed variable instead. The semantics change slightly because UNKNOWN will never be printed, but that doesn't seem important enough to complicate the code for. This is a _dbg() print, anyway. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Link: https://patch.msgid.link/20260609183353.1109641-1-kuba@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions