linux/drivers/net/ethernet/wangxun/libwx
Chenyuan Yang 7f1ff1b38a net: libwx: handle page_pool_dev_alloc_pages error
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 001ba09020
("net: fec: handle page_pool_dev_alloc_pages error").

This is found by our static analysis tool KNighter.

Signed-off-by: Chenyuan Yang <chenyuan0y@gmail.com>
Fixes: 3c47e8ae11 ("net: libwx: Support to receive packets in NAPI")
Reviewed-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250407184952.2111299-1-chenyuan0y@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-04-08 16:17:30 -07:00
..
Makefile net: wangxun: Add support for PTP clock 2025-02-20 14:59:36 -08:00
wx_ethtool.c net: wangxun: Replace the judgement of MAC type with flags 2025-02-24 18:13:00 -08:00
wx_ethtool.h net: wangxun: Support to get ts info 2025-02-20 14:59:37 -08:00
wx_hw.c net: wangxun: Replace the judgement of MAC type with flags 2025-02-24 18:13:00 -08:00
wx_hw.h net: ngbe: Add support for 1PPS and TOD 2025-02-20 14:59:37 -08:00
wx_lib.c net: libwx: handle page_pool_dev_alloc_pages error 2025-04-08 16:17:30 -07:00
wx_lib.h net: txgbe: add FDIR ATR support 2024-06-20 13:18:53 +02:00
wx_ptp.c net: ngbe: Add support for 1PPS and TOD 2025-02-20 14:59:37 -08:00
wx_ptp.h net: ngbe: Add support for 1PPS and TOD 2025-02-20 14:59:37 -08:00
wx_type.h net: libwx: Fix the wrong Rx descriptor field 2025-04-08 13:47:47 +02:00