lkml.org 
[lkml]   [2010]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[63/74] be2net: Fix memset() arg ordering.
    2.6.32-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: David S. Miller <davem@davemloft.net>

    commit d291b9af1a1a12f59a464494900c6e0db26e2ec3 upstream.

    Noticed by Ben Hutchings.

    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/net/benet/be_main.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/net/benet/be_main.c
    +++ b/drivers/net/benet/be_main.c
    @@ -2034,7 +2034,7 @@ static int be_stats_init(struct be_adapt
    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;
    }




    \
     
     \ /
      Last update: 2010-02-04 18:29    [W:0.021 / U:0.980 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site