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

2019-04-23 Thread Kees Cook
On Mon, Mar 25, 2019 at 1:29 PM Kangjie Lu wrote: > > In case kcalloc fails, the patch return an error to avoid > potential NULL pointer dereference. > > Signed-off-by: Kangjie Lu Reviewed-by: Kees Cook -Kees > > --- > v2: reuse existing error path as suggested by > Borislav Petkov > --- >

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

2019-03-25 Thread Kangjie Lu
In case kcalloc fails, the patch return an error to avoid potential NULL pointer dereference. Signed-off-by: Kangjie Lu --- v2: reuse existing error path as suggested by Borislav Petkov --- arch/x86/platform/uv/tlb_uv.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/a