Re: [PATCH] lib: Check for the NULL pointer after calling malloc

2022-10-10 Thread Thomas Monjalon
07/07/2022 11:23, 835703...@qq.com: > From: Shiqi Liu <835703...@qq.com> > > As the possible failure of the malloc(), the not_checked and > checked could be NULL pointer. > Therefore, it should be better to check it in order to avoid > the dereference of the NULL pointer. > > Fixes: fa8054c8c88 (

[PATCH] lib: Check for the NULL pointer after calling malloc

2022-07-07 Thread 835703180
From: Shiqi Liu <835703...@qq.com> As the possible failure of the malloc(), the not_checked and checked could be NULL pointer. Therefore, it should be better to check it in order to avoid the dereference of the NULL pointer. Fixes: fa8054c8c88 ("lib/node: add ethdev control") Signed-off-by: Shiqi