Re: [PATCH AUTOSEL 4.19 174/258] livepatch: check kzalloc return values

2019-01-28 Thread Sasha Levin
On Mon, Jan 28, 2019 at 06:28:14PM +0100, Miroslav Benes wrote: On Mon, 28 Jan 2019, Sasha Levin wrote: From: Nicholas Mc Guire [ Upstream commit 5f30b2e823484ce6a79f2b59901b6351c15effa6 ] kzalloc() return should always be checked - notably in example code where this may be seen as

Re: [PATCH AUTOSEL 4.19 174/258] livepatch: check kzalloc return values

2019-01-28 Thread Miroslav Benes
On Mon, 28 Jan 2019, Sasha Levin wrote: > From: Nicholas Mc Guire > > [ Upstream commit 5f30b2e823484ce6a79f2b59901b6351c15effa6 ] > > kzalloc() return should always be checked - notably in example code > where this may be seen as reference. On failure of allocation in >

[PATCH AUTOSEL 4.19 174/258] livepatch: check kzalloc return values

2019-01-28 Thread Sasha Levin
From: Nicholas Mc Guire [ Upstream commit 5f30b2e823484ce6a79f2b59901b6351c15effa6 ] kzalloc() return should always be checked - notably in example code where this may be seen as reference. On failure of allocation in livepatch_fix1_dummy_alloc() respectively dummy_alloc() previous allocation