summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaku Izumi <izumi.taku@jp.fujitsu.com>2016-05-10 04:28:49 +0300
committerDavid S. Miller <davem@davemloft.net>2016-05-10 05:05:51 +0300
commit27c0f739a009971aaf43ee71d9b150a56ee57012 (patch)
tree24049a0179f33f5076f1bcf90fd7b11679071b3d
parent1de1d449c6cf701e09d2941d042b28328118ad1a (diff)
downloadlinux-27c0f739a009971aaf43ee71d9b150a56ee57012.tar.xz
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 <izumi.taku@jp.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/fjes/fjes_main.c1
1 files changed, 0 insertions, 1 deletions
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;