summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorJoe Damato <joe@dama.to>2026-09-01 18:56:45 -0700
committerPaolo Abeni <pabeni@redhat.com>2026-09-08 10:47:02 +0200
commit5ce7f36c334d723954855ac769ede2fe0e8f89c8 (patch)
treefaf2e15299df688864f7e36303c266da28c0d58c /scripts/basic
parent4e17b5007b6664559cdad2b2fe270526cf786b5b (diff)
downloadlinux-5ce7f36c334d723954855ac769ede2fe0e8f89c8.tar.gz
linux-5ce7f36c334d723954855ac769ede2fe0e8f89c8.zip
bnxt_en: Don't free the live ring's TPA state on queue restart failure
bnxt_queue_mem_alloc() shallow copies the live RX ring into the clone: memcpy(clone, rxr, sizeof(*rxr)); the code currently clears pointers that the clone owns (such as rx_agg_bmap), but rx_tpa and rx_tpa_idx_map are left pointing at memory of the live ring that was cloned. If an allocation failure happens later and the err_free_tpa_info label is taken, the live ring's memory can be freed while still in use. Fix this by initializing the clone's pointers to NULL to prevent live ring state from being freed inadvertently. 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-3-joe@dama.to Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions