3C509: rx_bytes should not be increased when alloc_skb failed
authorWang Chen <wangchen@cn.fujitsu.com>
Tue, 20 May 2008 09:13:52 +0000 (17:13 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 22 May 2008 18:02:46 +0000 (14:02 -0400)
commitf7f312a0c7e7a1947cf193e0e94a257ad7742cb2
treec142f82b0177595e82aab7a802e2495afed4fcdf
parent56cfe5d028687468f76e8b613c63ca41f209982d
3C509: rx_bytes should not be increased when alloc_skb failed

If alloc_skb failed, the recieved packet will be dropped. Do not increase
rx_bytes for dropped packet.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/3c509.c