Re: [PATCH 1/10] sysfs: fix kmem_cache_free(NULL)

Akinobu Mita
2007-07-16T16:53:23Z

2007/7/17, Greg KH <gregkh@suse.de>:
> On Mon, Jul 16, 2007 at 10:50:28PM +0900, Akinobu Mita wrote:
> > This patch fixes out of memory error handling in sysfs_new_dirent().
> > kmem_cache_free() with NULL is not allowed.
>
> Why not just allow kmem_cache_free() to allow NULL like other functions
> in the kernel?

It seems there was discussion about this and no conclusion
yet?