mirror of
https://github.com/torvalds/linux.git
synced 2025-11-11 14:10:37 +02:00
'req_vec_chunks' is used to store the vector info received from the device control plane. The memory for it is allocated in idpf_send_alloc_vectors_msg and returns an error if the memory allocation fails. 'req_vec_chunks' cannot be NULL in the later code flow. So remove the conditional check to extract the vector ids received from the device control plane. Smatch static checker warning: drivers/net/ethernet/intel/idpf/idpf_lib.c:417 idpf_intr_req() error: we previously assumed 'adapter->req_vec_chunks' could be null (see line 360) Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/intel-wired-lan/a355ae8a-9011-4a85-a4d1-5b2793bb5f7b@stanley.mountain/ Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Pavan Kumar Linga <pavan.kumar.linga@intel.com> Tested-by: Krishneil Singh <krishneil.k.singh@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Link: https://patch.msgid.link/20240814175903.4166390-1-anthony.l.nguyen@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> |
||
|---|---|---|
| .. | ||
| idpf.h | ||
| idpf_controlq.c | ||
| idpf_controlq.h | ||
| idpf_controlq_api.h | ||
| idpf_controlq_setup.c | ||
| idpf_dev.c | ||
| idpf_devids.h | ||
| idpf_ethtool.c | ||
| idpf_lan_pf_regs.h | ||
| idpf_lan_txrx.h | ||
| idpf_lan_vf_regs.h | ||
| idpf_lib.c | ||
| idpf_main.c | ||
| idpf_mem.h | ||
| idpf_singleq_txrx.c | ||
| idpf_txrx.c | ||
| idpf_txrx.h | ||
| idpf_vf_dev.c | ||
| idpf_virtchnl.c | ||
| idpf_virtchnl.h | ||
| Kconfig | ||
| Makefile | ||
| virtchnl2.h | ||
| virtchnl2_lan_desc.h | ||