Commit d291b9af authored by David S. Miller's avatar David S. Miller

be2net: Fix memset() arg ordering.

Noticed by Ben Hutchings.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b473946a
...@@ -2168,7 +2168,7 @@ static int be_stats_init(struct be_adapter *adapter) ...@@ -2168,7 +2168,7 @@ static int be_stats_init(struct be_adapter *adapter)
cmd->va = pci_alloc_consistent(adapter->pdev, cmd->size, &cmd->dma); cmd->va = pci_alloc_consistent(adapter->pdev, cmd->size, &cmd->dma);
if (cmd->va == NULL) if (cmd->va == NULL)
return -1; return -1;
memset(cmd->va, cmd->size, 0); memset(cmd->va, 0, cmd->size);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment