aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorChenyuan Yang <[email protected]>2025-04-07 18:49:52 +0000
committerJakub Kicinski <[email protected]>2025-04-08 23:17:30 +0000
commit7f1ff1b38a7c8b872382b796023419d87d78c47e (patch)
tree550a0c0e0b3669a025e53e7ec47183cf4fbb40d4 /rust/helpers/platform.c
parentMerge branch 'mptcp-only-inc-mpjoinackhmacfailure-for-hmac-failures' (diff)
downloadkernel-7f1ff1b38a7c8b872382b796023419d87d78c47e.tar.gz
kernel-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 <[email protected]> Fixes: 3c47e8ae113a ("net: libwx: Support to receive packets in NAPI") Reviewed-by: Joe Damato <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions