OrangePi_CM5/drivers/net/ethernet/qlogic/qlcnic
Tom Rix 4896c308a5 qlcnic: dcb: default to returning -EOPNOTSUPP
[ Upstream commit 1521db37f0d42334a88e8ff28198a27d1ed5cd7b ]

Clang static analysis reports this issue
qlcnic_dcb.c:382:10: warning: Assigned value is
  garbage or undefined
  mbx_out = *val;
          ^ ~~~~

val is set in the qlcnic_dcb_query_hw_capability() wrapper.
If there is no query_hw_capability op in dcp, success is
returned without setting the val.

For this and similar wrappers, return -EOPNOTSUPP.

Fixes: 14d385b990 ("qlcnic: dcb: Query adapter DCB capabilities.")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:40:29 +02:00
..
Makefile
…
qlcnic.h
…
qlcnic_83xx_hw.c net: qlogic: qlcnic: Fix a NULL pointer dereference in qlcnic_83xx_add_rings() 2021-12-08 09:03:23 +01:00
qlcnic_83xx_hw.h
…
qlcnic_83xx_init.c
…
qlcnic_83xx_vnic.c
…
qlcnic_ctx.c
…
qlcnic_dcb.c
…
qlcnic_dcb.h qlcnic: dcb: default to returning -EOPNOTSUPP 2022-04-08 14:40:29 +02:00
qlcnic_ethtool.c
…
qlcnic_hdr.h
…
qlcnic_hw.c
…
qlcnic_hw.h
…
qlcnic_init.c
…
qlcnic_io.c
…
qlcnic_main.c
…
qlcnic_minidump.c
…
qlcnic_sriov.h qlcnic: potential dereference null pointer of rx_queue->page_ring 2021-12-29 12:25:56 +01:00
qlcnic_sriov_common.c qlcnic: potential dereference null pointer of rx_queue->page_ring 2021-12-29 12:25:56 +01:00
qlcnic_sriov_pf.c qlcnic: potential dereference null pointer of rx_queue->page_ring 2021-12-29 12:25:56 +01:00
qlcnic_sysfs.c
…