From: David S. Miller Date: Fri, 29 Jan 2010 05:36:21 +0000 (-0800) Subject: be2net: Fix memset() arg ordering. X-Git-Tag: v2.6.33-rc7~20^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d291b9af1a1a12f59a464494900c6e0db26e2ec3;p=profile%2Fcommon%2Fkernel-common.git be2net: Fix memset() arg ordering. Noticed by Ben Hutchings. Signed-off-by: David S. Miller --- diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 90c5661..6f26338 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; }