Commit 4f384d9
net: phy: don't allow __set_phy_supported to add unsupported modes
[ Upstream commit d2a3697 ]
Currently __set_phy_supported allows to add modes w/o checking whether
the PHY supports them. This is wrong, it should never add modes but
only remove modes we don't want to support.
The commit marked as fixed didn't do anything wrong, it just copied
existing functionality to the helper which is being fixed now.
Fixes: f3a6bd3 ("phylib: Add phy_set_max_speed helper")
Signed-off-by: Heiner Kallweit <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 5765610 commit 4f384d9
1 file changed
+8
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1579 | 1579 | | |
1580 | 1580 | | |
1581 | 1581 | | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
1585 | 1582 | | |
1586 | | - | |
1587 | | - | |
1588 | | - | |
1589 | | - | |
| 1583 | + | |
| 1584 | + | |
1590 | 1585 | | |
1591 | 1586 | | |
1592 | | - | |
1593 | | - | |
1594 | | - | |
1595 | | - | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
1596 | 1593 | | |
1597 | 1594 | | |
1598 | 1595 | | |
| |||
0 commit comments