diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 90c5661b336fe95436741a401a3d88db240aff24..6f2633887dc3df04cfc0e700faadea1122c34333 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c @@ -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; }