diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2026-08-20 19:49:36 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2026-08-20 19:49:36 +0000 |
| commit | 850203655b7d25d7309601a32b44011a21e850c6 (patch) | |
| tree | bb30c5a51a3c0f8c6f9cc38b4fb3a294bf1a7523 /crypto/libecc/.github/workflows/libecc_crossarch_tests.yml | |
| parent | 78bbe9fc3e3529731df07e29464f103f96f6ebed (diff) | |
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 'crypto/libecc/.github/workflows/libecc_crossarch_tests.yml')
0 files changed, 0 insertions, 0 deletions
