Re: Remember, kmalloc() can return NUL
Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 4 Jul 1999 23:20:11 +0100 (BST)
> that can return NULL, but has forgotten to check for a NULL return value.
> For example, many developers call kmalloc() or __get_free_pages() without
> checking for NULL, assuming these functions will always succeed. Although
> these functions rarely return NULL, this is still a real possibility for a
> heavily stressed Linux server. If we want Linux to become even more
> reliable, we need to stamp out bugs in every corner of the source code.
A lot of these seem bogus. Im not sure what the tool you used was but it
looks like it needs a few more hints to weed out the invalid reports. Some of
these are real though. Im going down the list squashing right now.
Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/