Commit 0c3f2e6
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: 85730a6 ("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>1 parent bc38496 commit 0c3f2e6
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5803 | 5803 | | |
5804 | 5804 | | |
5805 | 5805 | | |
5806 | | - | |
| 5806 | + | |
5807 | 5807 | | |
5808 | 5808 | | |
5809 | 5809 | | |
| |||
5944 | 5944 | | |
5945 | 5945 | | |
5946 | 5946 | | |
5947 | | - | |
5948 | | - | |
5949 | | - | |
5950 | 5947 | | |
5951 | 5948 | | |
5952 | 5949 | | |
| |||
0 commit comments