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

2007-07-17 Thread Pekka J Enberg
2007/7/17, Greg KH <[EMAIL PROTECTED]>: > > Why not just allow kmem_cache_free() to allow NULL like other functions > > in the kernel? On Tue, 17 Jul 2007, Akinobu Mita wrote: > It seems there was discussion about this and no conclusion > yet? IIRC the patch was rejected by relevant maintainers

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

2007-07-17 Thread Pekka J Enberg
2007/7/17, Greg KH [EMAIL PROTECTED]: Why not just allow kmem_cache_free() to allow NULL like other functions in the kernel? On Tue, 17 Jul 2007, Akinobu Mita wrote: It seems there was discussion about this and no conclusion yet? IIRC the patch was rejected by relevant maintainers because

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

2007-07-16 Thread Akinobu Mita
2007/7/17, Greg KH <[EMAIL PROTECTED]>: 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

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

2007-07-16 Thread Greg KH
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 - To

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

2007-07-16 Thread Akinobu Mita
This patch fixes out of memory error handling in sysfs_new_dirent(). kmem_cache_free() with NULL is not allowed. Cc: Greg Kroah-Hartman <[EMAIL PROTECTED]> Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]> --- fs/sysfs/dir.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-)

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

2007-07-16 Thread Akinobu Mita
This patch fixes out of memory error handling in sysfs_new_dirent(). kmem_cache_free() with NULL is not allowed. Cc: Greg Kroah-Hartman [EMAIL PROTECTED] Signed-off-by: Akinobu Mita [EMAIL PROTECTED] --- fs/sysfs/dir.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-)

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

2007-07-16 Thread Greg KH
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 - To

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

2007-07-16 Thread Akinobu Mita
2007/7/17, Greg KH [EMAIL PROTECTED]: 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