projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c49919
)
[PATCH] pm3386: zero stats properly
author
Lennert Buytenhek
<buytenh@wantstofly.org>
Wed, 23 Nov 2005 11:49:10 +0000
(12:49 +0100)
committer
Jeff Garzik
<jgarzik@pobox.com>
Thu, 1 Dec 2005 07:25:25 +0000
(
02:25
-0500)
Zero our stats structure properly.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/ixp2000/pm3386.c
patch
|
blob
|
history
diff --git
a/drivers/net/ixp2000/pm3386.c
b/drivers/net/ixp2000/pm3386.c
index cf0681fb127677aef6905ec1ee2560b7b03ff7d1..df960f1710f64aeac31ba57d893baafcb6ed0d84 100644
(file)
--- a/
drivers/net/ixp2000/pm3386.c
+++ b/
drivers/net/ixp2000/pm3386.c
@@
-238,7
+238,7
@@
void pm3386_get_stats(int port, struct net_device_stats *stats)
while (pm3386_port_reg_read(port, 0x500, 0x100) & 0x0001)
;
- memset(stats, 0, sizeof(stats));
+ memset(stats, 0, sizeof(
*
stats));
stats->rx_packets = pm3386_get_stat(port, 0x510);
stats->tx_packets = pm3386_get_stat(port, 0x590);