Re: [PATCH] phylib: Fix race between returning phydev and callingadjust_link

From: David Miller
Date: Tue Aug 24 2010 - 17:46:13 EST


From: Anton Vorontsov <avorontsov@xxxxxxxxxx>
Date: Tue, 24 Aug 2010 23:34:12 +0400

> It is possible that phylib will call adjust_link before returning
> from {,of_}phy_connect(), which may cause the following [very rare,
> though] oops upon reopening the device:
...
> To fix the issue, simply initialize the PHY's state to PHY_READY during
> phy_attach(). This will ensure that phylib won't call adjust_link before
> phy_start().
>
> Signed-off-by: Anton Vorontsov <avorontsov@xxxxxxxxxx>

Applied, thanks Anton.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/