[lkml]   [2004]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Document kfree and vfree NULL usage
    On Sat, Nov 27, 2004 at 04:26:00PM +0200, Pekka Enberg wrote:
    > > This patch adds comments for kfree() and vfree() stating that both accept
    > > NULL pointers. I audited vfree() callers and there seems to be lots of
    > > confusion over this in the kernel.

    On Sat, 2004-11-27 at 23:39 +0000, John Levon wrote:
    > Erm, are you sure about this? Somebody had to patch OProfile because
    > vfree() didn't like NULL value being passed in. When did this change?

    Yes, I am sure. vfree() calls __vunmap() which returns immediately if
    the passed pointer is NULL. I don't know when this changed.


    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: 2005-03-22 14:08    [W:0.020 / U:110.152 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site