[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z_SNpFmFXJwjWATx@LQ3V64L9R2>
Date: Mon, 7 Apr 2025 19:44:52 -0700
From: Joe Damato <jdamato@...tly.com>
To: Chenyuan Yang <chenyuan0y@...il.com>
Cc: jiawenwu@...stnetic.com, mengyuanlou@...-swift.com,
andrew+netdev@...n.ch, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, horms@...nel.org,
duanqiangwen@...-swift.com, dlemoal@...nel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] net: libwx: handle page_pool_dev_alloc_pages error
On Mon, Apr 07, 2025 at 01:49:52PM -0500, Chenyuan Yang wrote:
> page_pool_dev_alloc_pages could return NULL. There was a WARN_ON(!page)
> but it would still proceed to use the NULL pointer and then crash.
>
> This is similar to commit 001ba0902046
> ("net: fec: handle page_pool_dev_alloc_pages error").
>
> This is found by our static analysis tool KNighter.
>
> Signed-off-by: Chenyuan Yang <chenyuan0y@...il.com>
> Fixes: 3c47e8ae113a ("net: libwx: Support to receive packets in NAPI")
> ---
> drivers/net/ethernet/wangxun/libwx/wx_lib.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by: Joe Damato <jdamato@...tly.com>
Powered by blists - more mailing lists