Re: [PATCH] platform: uv: fix missing checks for kcalloc

2019-03-25 Thread Borislav Petkov
On Sun, Mar 24, 2019 at 05:57:53PM -0500, Kangjie Lu wrote: > In case kcalloc fails, the patch return an error to avoid > potential NULL pointer dereference. > > Signed-off-by: Kangjie Lu > --- > arch/x86/platform/uv/tlb_uv.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git

[PATCH] platform: uv: fix missing checks for kcalloc

2019-03-24 Thread Kangjie Lu
In case kcalloc fails, the patch return an error to avoid potential NULL pointer dereference. Signed-off-by: Kangjie Lu --- arch/x86/platform/uv/tlb_uv.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c index