diff options
| author | Abdun Nihaal <nihaal@cse.iitm.ac.in> | 2026-07-07 11:16:16 +0530 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-07-20 18:20:31 -0700 |
| commit | e354f7d60f14a3eacd5ec7b607346a5612f655ec (patch) | |
| tree | b02264a1e7bafc602d276b06b3b705587a92b730 /include/linux/workqueue_api.h | |
| parent | 298bb2b8903323f6ef2eab4819a2e477765f0ff1 (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/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
