Commit 27c0f739 authored by Taku Izumi's avatar Taku Izumi Committed by David S. Miller

fjes: Fix unnecessary spinlock_irqsave

commit-bd5a2569 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: default avatarTaku Izumi <izumi.taku@jp.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1de1d449
...@@ -819,7 +819,6 @@ static int fjes_change_mtu(struct net_device *netdev, int new_mtu) ...@@ -819,7 +819,6 @@ static int fjes_change_mtu(struct net_device *netdev, int new_mtu)
netdev->mtu = new_mtu; netdev->mtu = new_mtu;
if (running) { if (running) {
spin_lock_irqsave(&hw->rx_status_lock, flags);
for (epidx = 0; epidx < hw->max_epid; epidx++) { for (epidx = 0; epidx < hw->max_epid; epidx++) {
if (epidx == hw->my_epid) if (epidx == hw->my_epid)
continue; continue;
......
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