summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorAbdun Nihaal <nihaal@cse.iitm.ac.in>2026-07-07 11:16:16 +0530
committerJakub Kicinski <kuba@kernel.org>2026-07-20 18:20:31 -0700
commite354f7d60f14a3eacd5ec7b607346a5612f655ec (patch)
treeb02264a1e7bafc602d276b06b3b705587a92b730 /include/linux/debugobjects.h
parent298bb2b8903323f6ef2eab4819a2e477765f0ff1 (diff)
bnx2x: fix null pointer dereference in bnx2x_free_mem_bp()
In one of the error path in bnx2x_alloc_mem_bp(), bnx2x_free_mem_bp() may be called with bp->fp uninitialized. And so, there could be a null pointer dereference in bnx2x_free_mem_bp(). Fix that by initializing the fp_array_size after the bp->fp pointer is correctly initialized. Cc: stable+noautosel@kernel.org # untested fix to unlikely error path Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20260707054618.932108-1-nihaal@cse.iitm.ac.in Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions