]> git.itanic.dy.fi Git - linux-stable/commit
e1000e: Fix error path in link detection
authorBenjamin Poirier <bpoirier@suse.com>
Fri, 21 Jul 2017 18:36:23 +0000 (11:36 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 10 Oct 2017 15:17:00 +0000 (08:17 -0700)
commitc4c40e51f9c32c6dd8adf606624c930a1c4d9bbb
treeb89a7dab618e4156719dc59851b70bab80b860f0
parent812b5ca7d376e7e008ac0c897d1ef94eb05ddc3b
e1000e: Fix error path in link detection

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>
drivers/net/ethernet/intel/e1000e/phy.c