Re: [PATCH] integrity: add error handling for kmem_cache_create

2018-06-13 Thread Mimi Zohar
On Tue, 2018-06-12 at 12:27 +0800, Zhouyang Jia wrote: > When kmem_cache_create fails, the lack of error-handling code may > cause unexpected results. > > This patch adds error-handling code after calling kmem_cache_create. The slab is being create during __init.  Under what circumstances do you

Re: [PATCH] integrity: add error handling for kmem_cache_create

2018-06-13 Thread Mimi Zohar
On Tue, 2018-06-12 at 12:27 +0800, Zhouyang Jia wrote: > When kmem_cache_create fails, the lack of error-handling code may > cause unexpected results. > > This patch adds error-handling code after calling kmem_cache_create. The slab is being create during __init.  Under what circumstances do you

[PATCH] integrity: add error handling for kmem_cache_create

2018-06-11 Thread Zhouyang Jia
When kmem_cache_create fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling kmem_cache_create. Signed-off-by: Zhouyang Jia --- security/integrity/iint.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH] integrity: add error handling for kmem_cache_create

2018-06-11 Thread Zhouyang Jia
When kmem_cache_create fails, the lack of error-handling code may cause unexpected results. This patch adds error-handling code after calling kmem_cache_create. Signed-off-by: Zhouyang Jia --- security/integrity/iint.c | 3 +++ 1 file changed, 3 insertions(+) diff --git