summaryrefslogtreecommitdiff
path: root/include/linux/compiler-clang.h
diff options
context:
space:
mode:
authorAlexey Simakov <bigalex934@gmail.com>2025-10-14 19:47:38 +0300
committerJakub Kicinski <kuba@kernel.org>2025-10-15 17:16:49 -0700
commit0c3f2e62815a43628e748b1e4ad97a1c46cce703 (patch)
tree23393efa2febf2f2b624ced593f841ae676f967d /include/linux/compiler-clang.h
parentbc384963bc18e4f21cf8615b57cbbc9c5e0d309a (diff)
tg3: prevent use of uninitialized remote_adv and local_adv variables
Some execution paths that jump to the fiber_setup_done label could leave the remote_adv and local_adv variables uninitialized and then use it. Initialize this variables at the point of definition to avoid this. Fixes: 85730a631f0c ("tg3: Add SGMII phy support for 5719/5718 serdes") Co-developed-by: Alexandr Sapozhnikov <alsp705@gmail.com> Signed-off-by: Alexandr Sapozhnikov <alsp705@gmail.com> Signed-off-by: Alexey Simakov <bigalex934@gmail.com> Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com> Link: https://patch.msgid.link/20251014164736.5890-1-bigalex934@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/compiler-clang.h')
0 files changed, 0 insertions, 0 deletions