[openwrt/openwrt] ramips: add missing unlock in fe_phy_link_adjust

LEDE Commits lede-commits at lists.infradead.org
Sat Apr 14 11:13:11 PDT 2018


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/ceff5d8c82df077cd01b5aaf2db45f7b9f9c918d

commit ceff5d8c82df077cd01b5aaf2db45f7b9f9c918d
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sat Apr 14 19:48:58 2018 +0200

    ramips: add missing unlock in fe_phy_link_adjust
    
    Based on patch by Neil Brown
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mdio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mdio.c b/target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mdio.c
index c010552..b2a3158 100644
--- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mdio.c
+++ b/target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mdio.c
@@ -57,6 +57,7 @@ static void fe_phy_link_adjust(struct net_device *dev)
 			}
 		}
 	}
+	spin_unlock_irqrestore(&priv->phy->lock, flags);
 }
 
 int fe_connect_phy_node(struct fe_priv *priv, struct device_node *phy_node)



More information about the lede-commits mailing list