diff options
author | David S. Miller <davem@davemloft.net> | 2010-01-29 00:36:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-29 00:36:21 -0500 |
commit | d291b9af1a1a12f59a464494900c6e0db26e2ec3 (patch) | |
tree | 5381b240523afd3ce8e7b369dea6bff41372eef3 /drivers/net/benet | |
parent | b473946a0853860e13b51c28add5524741117786 (diff) |
be2net: Fix memset() arg ordering.
Noticed by Ben Hutchings.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r-- | drivers/net/benet/be_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 90c5661b336f..6f2633887dc3 100644 --- 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) | |||
2168 | cmd->va = pci_alloc_consistent(adapter->pdev, cmd->size, &cmd->dma); | 2168 | cmd->va = pci_alloc_consistent(adapter->pdev, cmd->size, &cmd->dma); |
2169 | if (cmd->va == NULL) | 2169 | if (cmd->va == NULL) |
2170 | return -1; | 2170 | return -1; |
2171 | memset(cmd->va, cmd->size, 0); | 2171 | memset(cmd->va, 0, cmd->size); |
2172 | return 0; | 2172 | return 0; |
2173 | } | 2173 | } |
2174 | 2174 | ||