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

Greg KH
2007-07-16T15:45:38Z

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?

thanks,

greg k-h