summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorJoe Damato <joe@dama.to>2026-09-01 18:56:46 -0700
committerPaolo Abeni <pabeni@redhat.com>2026-09-08 10:47:02 +0200
commitb814dfbfeb0a68c9a52073f2caa05a2d5247a329 (patch)
treef4e606d87bdd9f527d0b54f22501d1995463ac1f /scripts/basic/split-include.c
parent5ce7f36c334d723954855ac769ede2fe0e8f89c8 (diff)
downloadlinux-b814dfbfeb0a68c9a52073f2caa05a2d5247a329.tar.gz
linux-b814dfbfeb0a68c9a52073f2caa05a2d5247a329.zip
bnxt_en: Propagate TPA buffer allocation failures in bnxt_queue_mem_alloc()
bnxt_alloc_one_tpa_info_data() returns -ENOMEM as soon as one allocation fails. This leaves the remaining rxr->rx_tpa[] entries zeroed. bnxt_queue_mem_alloc() discards that return value, so the partially initialized ring is installed by bnxt_queue_start(). Since the agg_id is picked by the hardware and bnxt_alloc_agg_idx maps it to a SW index in rxr->rx_tpa[], it is possible that an uninitialized slot can be chosen which would hand a zero DMA address to the device. Fix this by checking the return value of bnxt_alloc_one_tpa_info_data and unwinding, freeing the ring buffers. Fixes: bd649c5cc958 ("bnxt_en: handle tpa_info in queue API implementation") Reported-by: Sashiko <sashiko-bot+sashiko@kernel.org> Link: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260828190900.1767611-1-joe%40dama.to Cc: stable@vger.kernel.org Signed-off-by: Joe Damato <joe@dama.to> Link: https://patch.msgid.link/20260902015652.2421609-4-joe@dama.to Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions