提交 d291b9af 编写于 作者: D David S. Miller

be2net: Fix memset() arg ordering.

Noticed by Ben Hutchings.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册