Re: [PATCH V2] raw/ioat: Check for the NULL pointer after calling malloc

2022-10-10 Thread Thomas Monjalon
06/07/2022 11:07, Bruce Richardson: > On Wed, Jul 06, 2022 at 02:55:48PM +0800, 835703...@qq.com wrote: > > 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 o

Re: [PATCH V2] raw/ioat: Check for the NULL pointer after calling malloc

2022-07-06 Thread Bruce Richardson
On Wed, Jul 06, 2022 at 02:55:48PM +0800, 835703...@qq.com wrote: > 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 poin