[PATCH] raw/ioat: Check for the NULL pointer after calling malloc
Bruce Richardson
bruce.richardson at intel.com
Tue Jul 5 12:14:58 CEST 2022
On Tue, Jun 28, 2022 at 01:52:26AM +0800, 835703180 at qq.com wrote:
> From: Shiqi Liu <835703180 at 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 automatically")
>
> Signed-off-by: Shiqi Liu <835703180 at qq.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list