Re: [PATCH net-next] decnet: fix using plain integer as NULL warning

From: Kees Cook
Date: Wed Aug 08 2018 - 18:03:55 EST


On Wed, Aug 8, 2018 at 4:59 AM, YueHaibing <yuehaibing@xxxxxxxxxx> wrote:
> Fixes the following sparse warning:
> net/decnet/dn_route.c:407:30: warning: Using plain integer as NULL pointer
> net/decnet/dn_route.c:1923:22: warning: Using plain integer as NULL pointer
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

-Kees

--
Kees Cook
Pixel Security