be2net: Fix memset() arg ordering.
Noticed by Ben Hutchings. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b473946a08
commit
d291b9af1a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue