From: Taku Izumi Date: Tue, 10 May 2016 01:28:49 +0000 (+0900) Subject: fjes: Fix unnecessary spinlock_irqsave X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=27c0f739a009971aaf43ee71d9b150a56ee57012;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fjes: Fix unnecessary spinlock_irqsave commit-bd5a256 introduces a deadlock bug in fjes_change_mtu(). This spin_lock_irqsave() is obviously unnecessary. This patch eliminates unnecessary spin_lock_irqsave() in fjes_change_mtu() Signed-off-by: Taku Izumi Signed-off-by: David S. Miller --- diff --git a/drivers/net/fjes/fjes_main.c b/drivers/net/fjes/fjes_main.c index f4e69261a3ce..86c331bb5eb3 100644 --- a/drivers/net/fjes/fjes_main.c +++ b/drivers/net/fjes/fjes_main.c @@ -819,7 +819,6 @@ static int fjes_change_mtu(struct net_device *netdev, int new_mtu) netdev->mtu = new_mtu; if (running) { - spin_lock_irqsave(&hw->rx_status_lock, flags); for (epidx = 0; epidx < hw->max_epid; epidx++) { if (epidx == hw->my_epid) continue;