mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 00:29:50 +00:00
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user