diff options
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8216.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index 3a0483ddba..cf28af0c76 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.c +++ b/target/linux/generic/files/drivers/net/phy/ar8216.c @@ -1902,6 +1902,7 @@ err_cleanup_mib: ar8xxx_mib_cleanup(priv); err_free_priv: kfree(priv); + pdev->priv = NULL; return ret; } @@ -1983,6 +1984,8 @@ ar8216_remove(struct phy_device *pdev) if (!priv) return; + pdev->priv = NULL; + dev->priv_flags &= ~IFF_NO_IP_ALIGN; dev->eth_mangle_rx = NULL; dev->eth_mangle_tx = NULL; |