Commit 61749d18 authored by NeilBrown's avatar NeilBrown Committed by Greg Kroah-Hartman

staging: mt7621-eth: Lock is never unlocked.

mtk_phy_link_adjust takes a spinlock and disables
interrupts, but never unlocks.
This can leave interrupts disabled on one CPU and
various things stop working.
Signed-off-by: default avatarNeilBrown <neil@brown.name>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b06b4605
...@@ -57,6 +57,7 @@ static void mtk_phy_link_adjust(struct net_device *dev) ...@@ -57,6 +57,7 @@ static void mtk_phy_link_adjust(struct net_device *dev)
} }
} }
} }
spin_unlock_irqrestore(&eth->phy->lock, flags);
} }
int mtk_connect_phy_node(struct mtk_eth *eth, struct mtk_mac *mac, int mtk_connect_phy_node(struct mtk_eth *eth, struct mtk_mac *mac,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment