diff options
| author | 2025-11-03 16:56:57 -0800 | |
|---|---|---|
| committer | 2025-11-04 17:25:19 -0800 | |
| commit | ff02be05f78399c766be68ab0b2285ff90b2aaa8 (patch) | |
| tree | 5f62b5e1f5add38f2855f52fc6b140530af89d46 /rust/kernel/debugfs/git:/ssh:/git@git.zx2c4.com | |
| parent | bnxt_en: Fix a possible memory leak in bnxt_ptp_init (diff) | |
| download | wireguard-linux-ff02be05f78399c766be68ab0b2285ff90b2aaa8.tar.xz wireguard-linux-ff02be05f78399c766be68ab0b2285ff90b2aaa8.zip | |
bnxt_en: Fix null pointer dereference in bnxt_bs_trace_check_wrap()
With older FW, we may get the ASYNC_EVENT_CMPL_EVENT_ID_DBG_BUF_PRODUCER
for FW trace data type that has not been initialized. This will result
in a crash in bnxt_bs_trace_type_wrap(). Add a guard to check for a
valid magic_byte pointer before proceeding.
Fixes: 84fcd9449fd7 ("bnxt_en: Manage the FW trace context memory")
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Shruti Parab <shruti.parab@broadcom.com>
Signed-off-by: Gautam R A <gautam-r.a@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20251104005700.542174-4-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/kernel/debugfs/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
