summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAbdun Nihaal <nihaal@cse.iitm.ac.in>2026-06-20 11:53:50 +0530
committerJakub Kicinski <kuba@kernel.org>2026-06-22 18:39:12 -0700
commita986fde914d88af47eb78fd29c5d1af7952c3500 (patch)
tree03fc4fc307bbd9521008449db80e174104b29f25 /scripts
parentb72f0db64205d9ce462038ba995d5d31eff32dc1 (diff)
bnx2x: fix potential memory leak in bnx2x_alloc_mem_bp()
If the allocation of fp[i].tpa_info fails, the error path will not free the struct bnx2x_fastpath allocated earlier, as it is not linked to the bp structure yet. Fix that by linking it immediately after allocation. Cc: stable@vger.kernel.org Fixes: 15192a8cf8a8 ("bnx2x: Split the FP structure") Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20260620062402.89549-1-nihaal@cse.iitm.ac.in Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions