diff options
| author | David Carlier <devnexen@gmail.com> | 2026-04-09 19:40:09 +0100 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-04-13 15:40:49 -0700 |
| commit | dd66b42854705e4e4ee7f14d260f86c578bed3e3 (patch) | |
| tree | 0fe934139222859f16380d90ea93c77e23bdedab /drivers/md/raid6test/git@git.tavy.me:linux.git | |
| parent | 4e5bc3ff060e6a495117a164a1ce6df5cdf1454f (diff) | |
octeon_ep_vf: add NULL check for napi_build_skb()
napi_build_skb() can return NULL on allocation failure. In
__octep_vf_oq_process_rx(), the result is used directly without a NULL
check in both the single-buffer and multi-fragment paths, leading to a
NULL pointer dereference.
Add NULL checks after both napi_build_skb() calls, properly advancing
descriptors and consuming remaining fragments on failure.
Fixes: 1cd3b407977c ("octeon_ep_vf: add Tx/Rx processing and interrupt support")
Cc: stable@vger.kernel.org
Signed-off-by: David Carlier <devnexen@gmail.com>
Link: https://patch.msgid.link/20260409184009.930359-3-devnexen@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/md/raid6test/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
