Re: [PATCH 2/2] livepatch: handle kzalloc failure

2018-12-13 Thread Petr Mladek
On Thu 2018-12-13 12:09:50, Nicholas Mc Guire wrote: > kzalloc() return should be checked. On dummy_alloc() failing > in kzalloc() NULL should be returned. > > Signed-off-by: Nicholas Mc Guire > --- > > Problem was located with an experimental coccinelle script > > Patch was compile tested

[PATCH 2/2] livepatch: handle kzalloc failure

2018-12-13 Thread Nicholas Mc Guire
kzalloc() return should be checked. On dummy_alloc() failing in kzalloc() NULL should be returned. Signed-off-by: Nicholas Mc Guire --- Problem was located with an experimental coccinelle script Patch was compile tested with: x86_64_defconfig + FTRACE=y FUNCTION_TRACER=y, EXPERT=y,