Commit fbb2d80
e1000e: Fix error path in link detection
commit c4c40e51f9c32c6dd8adf606624c930a1c4d9bbb upstream.
In case of error from e1e_rphy(), the loop will exit early and "success"
will be set to true erroneously.
Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent d6968bc commit fbb2d80
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1744 | 1744 | | |
1745 | 1745 | | |
1746 | 1746 | | |
| 1747 | + | |
1747 | 1748 | | |
1748 | 1749 | | |
1749 | 1750 | | |
| |||
1763 | 1764 | | |
1764 | 1765 | | |
1765 | 1766 | | |
1766 | | - | |
| 1767 | + | |
| 1768 | + | |
1767 | 1769 | | |
| 1770 | + | |
1768 | 1771 | | |
1769 | 1772 | | |
1770 | 1773 | | |
1771 | 1774 | | |
1772 | 1775 | | |
1773 | 1776 | | |
1774 | | - | |
1775 | | - | |
1776 | 1777 | | |
1777 | 1778 | | |
1778 | 1779 | | |
| |||
0 commit comments