projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b473946
)
be2net: Fix memset() arg ordering.
author
David S. Miller
<davem@davemloft.net>
Fri, 29 Jan 2010 05:36:21 +0000
(21:36 -0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 29 Jan 2010 05:36:21 +0000
(21:36 -0800)
Noticed by Ben Hutchings.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/benet/be_main.c
b/drivers/net/benet/be_main.c
index 90c5661b336fe95436741a401a3d88db240aff24..6f2633887dc3df04cfc0e700faadea1122c34333 100644
(file)
--- a/
drivers/net/benet/be_main.c
+++ b/
drivers/net/benet/be_main.c
@@
-2168,7
+2168,7
@@
static int be_stats_init(struct be_adapter *adapter)
cmd->va = pci_alloc_consistent(adapter->pdev, cmd->size, &cmd->dma);
if (cmd->va == NULL)
return -1;
- memset(cmd->va,
cmd->size, 0
);
+ memset(cmd->va,
0, cmd->size
);
return 0;
}