[lkml]   [2007]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: kfree(0) - ok?
    On Sat, 18 Aug 2007, Thomas Gleixner wrote:

    > If yes, who invented this 1980s reminiscence, where you got valid
    > pointers for malloc(0) ?

    I believe his first name started with an L and ended with an s ;-)

    Seriously the kmalloc(0) pointer allowed us to detect cases in which
    people tried to store into objects allocated with kmalloc(0).

    If we would just return NULL then we would not be able to distinguish it
    from a failure (that is what I initially had).

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-08-18 03:07    [W:0.021 / U:20.168 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site