summaryrefslogtreecommitdiff
path: root/drivers/net/benet
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-01-28 21:36:21 -0800
committerDavid S. Miller <davem@davemloft.net>2010-01-28 21:36:21 -0800
commitd291b9af1a1a12f59a464494900c6e0db26e2ec3 (patch)
tree5381b240523afd3ce8e7b369dea6bff41372eef3 /drivers/net/benet
parentb473946a0853860e13b51c28add5524741117786 (diff)
downloadlinux-d291b9af1a1a12f59a464494900c6e0db26e2ec3.tar.gz
linux-d291b9af1a1a12f59a464494900c6e0db26e2ec3.tar.xz
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.c2
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)
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;
}