aboutsummaryrefslogtreecommitdiff
path: root/mld/agg.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2026-08-20 19:49:36 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2026-08-20 19:49:36 +0000
commit850203655b7d25d7309601a32b44011a21e850c6 (patch)
treebb30c5a51a3c0f8c6f9cc38b4fb3a294bf1a7523 /mld/agg.h
parent78bbe9fc3e3529731df07e29464f103f96f6ebed (diff)
thunderbolt: Fix v2.0 reset to reliably wait for the reset to finishHEADmain
The `reg` value was never initialized, so the loop could potentially abort without a single read of the register. This was found by the following warning from GCC: sys/dev/thunderbolt/nhi.c: In function 'nhi_reset_v2': sys/dev/thunderbolt/nhi.c:272:35: error: 'reg' is used uninitialized [-Werror=uninitialized] 272 | for (size_t i = 0; i < 10 && reg; i++) { | ^~ sys/dev/thunderbolt/nhi.c:257:18: note: 'reg' was declared here 257 | uint32_t reg; | ^~~ Reported by: GCC 15 Fixes: efdb82413963 ("thunderbolt: Reset controllers")
Diffstat (limited to 'mld/agg.h')
0 files changed, 0 insertions, 0 deletions