linux/drivers/net/pcmcia
Roel Kluin b9bdcd9bd7 net pcmcia: worklimit reaches -1
with while (--worklimit >= 0); worklimit reaches -1 after the loop. In
3c589_cs.c this caused a warning not to be printed.

In 3c574_cs.c contrastingly, el3_rx() treats worklimit differently:

static int el3_rx(struct net_device *dev, int worklimit)
{
	while (--worklimit >= 0) { ... }
	return worklimit;
}

el3_rx() is only called by function el3_interrupt(): twice:

static irqreturn_t el3_interrupt(int irq, void *dev_id)
{
        int work_budget = max_interrupt_work;
	while(...) {
		if (...)
			work_budget = el3_rx(dev, work_budget);
		if (...)
			work_budget = el3_rx(dev, work_budget);
		if (--work_budget < 0) {
		        ...
		        break;
		}
	}
}
The error path can occur 2 too early.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-03-04 00:11:52 -08:00
..
3c574_cs.c net pcmcia: worklimit reaches -1 2009-03-04 00:11:52 -08:00
3c589_cs.c net pcmcia: worklimit reaches -1 2009-03-04 00:11:52 -08:00
Kconfig [netdrvr] ibmtr: PCMCIA IBMTR is ok on 64bit 2008-10-16 05:40:16 -04:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
axnet_cs.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-11-26 23:48:40 -08:00
com20020_cs.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
fmvj18x_cs.c fmvj18x_cs: write interrupt ack bit for lan and modem to work simultaneously. 2008-11-07 03:21:10 -05:00
ibmtr_cs.c section misannotation in ibmtr_cs 2008-11-30 10:03:37 -08:00
nmclan_cs.c drivers/net: Kill now superfluous ->last_rx stores. 2008-11-03 21:11:17 -08:00
ositech.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pcnet_cs.c pcnet_cs: Fix misuse of the equality operator. 2009-02-03 15:14:05 -08:00
smc91c92_cs.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
xirc2ps_cs.c drivers/net: Kill now superfluous ->last_rx stores. 2008-11-03 21:11:17 -08:00