net: phy: fix setting autoneg_complete in genphy_update_link
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 8 Apr 2019 17:28:28 +0000 (19:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 23:35:52 +0000 (16:35 -0700)
commitb7f29f8ce170c1b22779d62cbd24bf336ef0372b
tree0dd0f2778649708baaa6685f67416df60f33b0c9
parent13ee7d49733b4579566f72c29b336a33cf3233c7
net: phy: fix setting autoneg_complete in genphy_update_link

The original patch didn't set phydev->autoneg_complete in one exit path.
Fix this.

Fixes: 4950c2ba49cc ("net: phy: fix autoneg mismatch case in genphy_read_status")
Reported-by: Simon Horman <horms@verge.net.au>
Tested-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c