diff options
| author | Su Hui <[email protected]> | 2024-09-12 11:01:20 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-09-14 03:03:43 +0000 |
| commit | 99655a304e450baaae6b396cb942b9e47659d644 (patch) | |
| tree | bb74f3d57898dc0f6ae1db82d9ec219ddc3cf6c2 /drivers/net/netkit.c | |
| parent | fbnic: Set napi irq value after calling netif_napi_add (diff) | |
| download | kernel-99655a304e450baaae6b396cb942b9e47659d644.tar.gz kernel-99655a304e450baaae6b396cb942b9e47659d644.zip | |
net: tipc: avoid possible garbage value
Clang static checker (scan-build) warning:
net/tipc/bcast.c:305:4:
The expression is an uninitialized value. The computed value will also
be garbage [core.uninitialized.Assign]
305 | (*cong_link_cnt)++;
| ^~~~~~~~~~~~~~~~~~
tipc_rcast_xmit() will increase cong_link_cnt's value, but cong_link_cnt
is uninitialized. Although it won't really cause a problem, it's better
to fix it.
Fixes: dca4a17d24ee ("tipc: fix potential hanging after b/rcast changing")
Signed-off-by: Su Hui <[email protected]>
Reviewed-by: Justin Stitt <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions
