summaryrefslogtreecommitdiffstats
path: root/rust/helpers/workqueue.c
diff options
context:
space:
mode:
authorChenyuan Yang <chenyuan0y@gmail.com>2025-04-07 13:49:52 -0500
committerJakub Kicinski <kuba@kernel.org>2025-04-08 16:17:30 -0700
commit7f1ff1b38a7c8b872382b796023419d87d78c47e (patch)
tree550a0c0e0b3669a025e53e7ec47183cf4fbb40d4 /rust/helpers/workqueue.c
parentdd17a7f1d3b35fa2708d0a81a5b5e865371c43e4 (diff)
downloadlinux-7f1ff1b38a7c8b872382b796023419d87d78c47e.tar.gz
linux-7f1ff1b38a7c8b872382b796023419d87d78c47e.tar.bz2
linux-7f1ff1b38a7c8b872382b796023419d87d78c47e.zip
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 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@gmail.com> Fixes: 3c47e8ae113a ("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>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions