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>

authored by Jarek Poplawski and committed by David S. Miller 9a3de255 bb5f133d

+5
+5
drivers/net/starfire.c
··· 1509 1509 desc->status = 0; 1510 1510 np->rx_done = (np->rx_done + 1) % DONE_Q_SIZE; 1511 1511 } 1512 + 1513 + if (*quota == 0) { /* out of rx quota */ 1514 + retcode = 1; 1515 + goto out; 1516 + } 1512 1517 writew(np->rx_done, np->base + CompletionQConsumerIdx); 1513 1518 1514 1519 out: