diff options
author | David S. Miller <davem@davemloft.net> | 2010-01-28 21:36:21 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-28 21:36:21 -0800 |
commit | d291b9af1a1a12f59a464494900c6e0db26e2ec3 (patch) | |
tree | 5381b240523afd3ce8e7b369dea6bff41372eef3 | |
parent | b473946a0853860e13b51c28add5524741117786 (diff) |
be2net: Fix memset() arg ordering.
Noticed by Ben Hutchings.
Signed-off-by: David S. Miller <davem@davemloft.net>
-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) 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; } |