]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
drivers/net: starfire: Fix napi ->poll() weight handling
authorJarek Poplawski <jarkao2@gmail.com>
Tue, 16 Dec 2008 23:42:20 +0000 (15:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Dec 2008 23:42:20 +0000 (15:42 -0800)
commit9a3de25544dadab1971847f28f33b1cd0d1770a6
treecf5f2cfe90b0b05f45f2625d99d130a0a5c30f9b
parentbb5f133dbc4f04b6388715d364ae5865455166c2
drivers/net: starfire: Fix napi ->poll() weight handling

starfire napi ->poll() handler can return work == weight after calling
netif_rx_complete() (if there is no more work). It is illegal and this
patch fixes it.

Reported-by: Alexander Huemer <alexander.huemer@sbg.ac.at>
Tested-by: Alexander Huemer <alexander.huemer@sbg.ac.at>
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/starfire.c