Commit c009cb84 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

skge: remove redundunt free_irq under spinlock

The code to handle multi-port SKGE boards was freeing IRQ
twice. The first one was under lock and might sleep.
Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3b3397e2
...@@ -4081,7 +4081,6 @@ static void skge_remove(struct pci_dev *pdev) ...@@ -4081,7 +4081,6 @@ static void skge_remove(struct pci_dev *pdev)
if (hw->ports > 1) { if (hw->ports > 1) {
skge_write32(hw, B0_IMSK, 0); skge_write32(hw, B0_IMSK, 0);
skge_read32(hw, B0_IMSK); skge_read32(hw, B0_IMSK);
free_irq(pdev->irq, hw);
} }
spin_unlock_irq(&hw->hw_lock); spin_unlock_irq(&hw->hw_lock);
......
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