lkml.org 
[lkml]   [2011]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: make checkpatch warn about memset with swapped arguments.
    From
    Date
    On Thu, 2011-03-17 at 14:57 -0700, Andrew Morton wrote:

    > I'm OK with switching from memset to bzero as the preferred way of
    > clearing memory (shorter, clearer, not susceptible to the arg reversal
    > bug). Is Linus?

    I suspect that a lot of memset(foo, 0, size); are before a kmalloc and
    can also be replaced with kzalloc();

    -- Steve




    \
     
     \ /
      Last update: 2011-03-17 23:07    [W:0.020 / U:60.052 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site