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: NeilBrown <neil@brown.name> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b06b46059b
commit
61749d183e
|
@ -57,6 +57,7 @@ static void mtk_phy_link_adjust(struct net_device *dev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
spin_unlock_irqrestore(ð->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,
|
||||||
|
|
Loading…
Reference in New Issue