Re: [PATCH] pstore: Tidy up an error check

2020-12-02 Thread Dan Carpenter
On Wed, Dec 02, 2020 at 11:25:46AM -0800, Kees Cook wrote: > On Wed, Dec 02, 2020 at 09:45:31AM +0300, Dan Carpenter wrote: > > The crypto_alloc_comp() function never returns NULL, it returns error > > pointers on error. > > > > Signed-off-by: Dan Carpenter > > I replied to an identical patch

Re: [PATCH] pstore: Tidy up an error check

2020-12-02 Thread Kees Cook
On Wed, Dec 02, 2020 at 09:45:31AM +0300, Dan Carpenter wrote: > The crypto_alloc_comp() function never returns NULL, it returns error > pointers on error. > > Signed-off-by: Dan Carpenter I replied to an identical patch yesterday, actually:

[PATCH] pstore: Tidy up an error check

2020-12-01 Thread Dan Carpenter
The crypto_alloc_comp() function never returns NULL, it returns error pointers on error. Signed-off-by: Dan Carpenter --- fs/pstore/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 36714df37d5d..b7a2a2a31dee 100644