Skip to content

Commit

Permalink
[SUNGEM]: Fix netpoll bug in Sun GEM Ether driver
Browse files Browse the repository at this point in the history
From: Eric Lemoine <eric.lemoine@gmail.com>

To me the bug is that __LINK_STATE_RX_SCHED can be set while
__netif_rx_schedule() hasen't be called. Why don't fix it in the
simplest way ? See attached patch (absolutely untested).

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Lemoine authored and David S. Miller committed Sep 2, 2005
1 parent 0014c61 commit 86d9f7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/sungem.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,7 @@ static irqreturn_t gem_interrupt(int irq, void *dev_id, struct pt_regs *regs)
u32 gem_status = readl(gp->regs + GREG_STAT);

if (gem_status == 0) {
netif_poll_enable(dev);
spin_unlock_irqrestore(&gp->lock, flags);
return IRQ_NONE;
}
Expand Down

0 comments on commit 86d9f7f

Please sign in to comment.