2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/net/ethernet/qlogic/qed
Gianfranco Trad 7ed2d91588 qed: fix possible uninit pointer read in qed_mcp_nvm_info_populate()
Coverity reports an uninit pointer read in qed_mcp_nvm_info_populate().
If EOPNOTSUPP is returned from qed_mcp_bist_nvm_get_num_images() ensure
nvm_info.num_images is set to 0 to avoid possible uninit assignment
to p_hwfn->nvm_info.image_att later on in out label.

Closes: https://scan5.scan.coverity.com/#/project-view/63204/10063?selectedIssue=1636666
Suggested-by: Simon Horman <horms@kernel.org>
Signed-off-by: Gianfranco Trad <gianf.trad@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241215011733.351325-2-gianf.trad@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-12-17 15:08:52 +01:00
..
Makefile
qed_chain.c
qed_cxt.c qed: Fix a potential use-after-free in qed_cxt_tables_alloc 2023-12-12 13:33:51 -08:00
qed_cxt.h
qed_dbg_hsi.h
qed_dcbx.c
qed_dcbx.h
qed_debug.c qed: put cond_resched() in qed_grc_dump_ctx_data() 2024-10-04 09:25:15 -07:00
qed_debug.h
qed_dev_api.h
qed_dev.c
qed_devlink.c devlink: extend devlink_param *set pointer 2024-04-22 13:05:19 -07:00
qed_devlink.h
qed_fcoe.c
qed_fcoe.h
qed_hsi.h
qed_hw.c qed: put cond_resched() in qed_dmae_operation_wait() 2024-10-04 09:25:15 -07:00
qed_hw.h
qed_init_fw_funcs.c
qed_init_ops.c
qed_init_ops.h
qed_int.c
qed_int.h
qed_iro_hsi.h
qed_iscsi.c
qed_iscsi.h
qed_iwarp.c
qed_iwarp.h
qed_l2.c
qed_l2.h
qed_ll2.c qed: fix LL2 RX buffer allocation 2023-10-15 14:29:14 +01:00
qed_ll2.h qed/red_ll2: Fix undefined behavior bug in struct qed_ll2_info 2023-10-03 10:33:17 +02:00
qed_main.c Networking changes for 6.10. 2024-05-14 19:42:24 -07:00
qed_mcp.c qed: fix possible uninit pointer read in qed_mcp_nvm_info_populate() 2024-12-17 15:08:52 +01:00
qed_mcp.h
qed_mfw_hsi.h
qed_mng_tlv.c
qed_nvmetcp_fw_funcs.c
qed_nvmetcp_fw_funcs.h
qed_nvmetcp.c
qed_nvmetcp.h
qed_ooo.c
qed_ooo.h
qed_ptp.c
qed_ptp.h
qed_rdma.c qed: remove duplicated assignment to variable opaque_fid 2024-02-08 19:05:01 -08:00
qed_rdma.h
qed_reg_addr.h
qed_roce.c
qed_roce.h
qed_selftest.c
qed_selftest.h
qed_sp_commands.c
qed_sp.h
qed_spq.c
qed_sriov.c
qed_sriov.h
qed_vf.c qed: remove unused 'resp_size' calculation 2023-08-15 19:04:36 -07:00
qed_vf.h
qed.h qed: Drop useless pci_params.pm_cap 2024-03-28 18:22:28 -07:00