Re: [PATCH] pstore: Fix passing zero to 'PTR_ERR' warning

2020-12-01 Thread Kees Cook
On Sat, Oct 31, 2020 at 01:59:31PM +0800, YueHaibing wrote: > Fix smatch warning: > > fs/pstore/platform.c:320 allocate_buf_for_compression() warn: passing zero to > 'PTR_ERR' > > crypto_alloc_comp() never return NULL, use IS_ERR > instead of IS_ERR_OR_NULL to fix this. > > Signed-off-by: YueHa

[PATCH] pstore: Fix passing zero to 'PTR_ERR' warning

2020-10-30 Thread YueHaibing
Fix smatch warning: fs/pstore/platform.c:320 allocate_buf_for_compression() warn: passing zero to 'PTR_ERR' crypto_alloc_comp() never return NULL, use IS_ERR instead of IS_ERR_OR_NULL to fix this. Signed-off-by: YueHaibing --- fs/pstore/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 del