Commit 50b3db3
broadcom: b44: prevent uninitialized value usage
On execution path with raised B44_FLAG_EXTERNAL_PHY, b44_readphy()
leaves bmcr value uninitialized and it is used later in the code.
Add check of this flag at the beginning of the b44_nway_reset() and
exit early of the function with restarting autonegotiation if an
external PHY is used.
Fixes: 753f492 ("[B44]: port to native ssb support")
Reviewed-by: Jonas Gorski <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: Alexey Simakov <[email protected]>
Reviewed-by: Michael Chan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 6af2a01 commit 50b3db3
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1790 | 1790 | | |
1791 | 1791 | | |
1792 | 1792 | | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
1793 | 1796 | | |
1794 | 1797 | | |
1795 | 1798 | | |
| |||
0 commit comments