]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
be2net: Fix memset() arg ordering.
authorDavid S. Miller <davem@davemloft.net>
Fri, 29 Jan 2010 05:36:21 +0000 (21:36 -0800)
committerDavid 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

index 90c5661b336fe95436741a401a3d88db240aff24..6f2633887dc3df04cfc0e700faadea1122c34333 100644 (file)
@@ -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;
 }