diff options
| author | David Carlier <devnexen@gmail.com> | 2026-04-05 06:52:39 +0100 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-04-09 15:17:23 +0200 |
| commit | 3fd0da4fd8851a7e62d009b7db6c4a05b092bc19 (patch) | |
| tree | 7f38804a6232e3362c63e2ea09374c3ade401a38 /tools/testing/vma/include/git@git.tavy.me:linux.git | |
| parent | c71ba669b570c7b3f86ec875be222ea11dacb352 (diff) | |
net: lan966x: fix page_pool error handling in lan966x_fdma_rx_alloc_page_pool()
page_pool_create() can return an ERR_PTR on failure. The return value
is used unconditionally in the loop that follows, passing the error
pointer through xdp_rxq_info_reg_mem_model() into page_pool_use_xdp_mem(),
which dereferences it, causing a kernel oops.
Add an IS_ERR check after page_pool_create() to return early on failure.
Fixes: 11871aba1974 ("net: lan96x: Use page_pool API")
Cc: stable@vger.kernel.org
Signed-off-by: David Carlier <devnexen@gmail.com>
Link: https://patch.msgid.link/20260405055241.35767-2-devnexen@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/testing/vma/include/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
