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

2022-07-06 Thread Bruce Richardson
On Tue, Jul 05, 2022 at 09:43:34PM +0200, Thomas Monjalon wrote: > 27/06/2022 19:52, 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 or

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

2022-07-05 Thread Thomas Monjalon
27/06/2022 19:52, 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: b7aaf417f93 (

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

2022-07-05 Thread Bruce Richardson
On Tue, Jun 28, 2022 at 01:52:26AM +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

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

2022-06-27 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: b7aaf417f93 ("raw/ioat: add bus driver for device scanning autom