summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorShruti Parab <shruti.parab@broadcom.com>2025-04-29 01:59:01 +0300
committerDavid S. Miller <davem@davemloft.net>2025-04-30 15:03:21 +0300
commitea9376cf68230e05492f22ca45d329f16e262c7b (patch)
treefc05bbc70ad27e993c0331e36a6a975ac785262a /lib/mpi/mpi-internal.h
parentc2d20a3814d1b57dea6db82229edd702bde9c878 (diff)
downloadlinux-ea9376cf68230e05492f22ca45d329f16e262c7b.tar.xz
bnxt_en: Fix coredump logic to free allocated buffer
When handling HWRM_DBG_COREDUMP_LIST FW command in bnxt_hwrm_dbg_dma_data(), the allocated buffer info->dest_buf is not freed in the error path. In the normal path, info->dest_buf is assigned to coredump->data and it will eventually be freed after the coredump is collected. Free info->dest_buf immediately inside bnxt_hwrm_dbg_dma_data() in the error path. Fixes: c74751f4c392 ("bnxt_en: Return error if FW returns more data than dump length") Reported-by: Michael Chan <michael.chan@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Shruti Parab <shruti.parab@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions