Skip to content

Commit

Permalink
be2net: Fix memset() arg ordering.
Browse files Browse the repository at this point in the history
Noticed by Ben Hutchings.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jan 29, 2010
1 parent b473946 commit d291b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d291b9a

Please sign in to comment.