From: Pavel Emelyanov <xemul@xxxxxxxxxx> Date: Wed, 07 May 2008 09:54:53 +0400 > David Miller wrote: > > The whole reason we made kfree allow NULL points is so that > > checks for it would be ommitted at kfree calls sides, whether > > they be direct or indirect. > > Hm... I really thought that this check in kfree is just for sanity > against some 3rd part code. But why kmem_cache_free() is not such then? That's not what the check was added for. If you look in the history, there are lots of changes that are of the form "don't check for NULL, kfree() does that" and it decreases kernel text size. That was why the check was added to kfree(), so we could do that. There have been some discussions about kmem_cache_free() NULL checks, but that tends to keep getting stalled in the mud for whatever reason. Whether you should resubmit your patch is up to the wireless folks :-) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html