linux-brain/drivers/net/ethernet/mellanox/mlx4
Jiapeng Chong ede4c93860 mlx4: Fix missing error code in mlx4_load_one()
[ Upstream commit 7e4960b3d66d7248b23de3251118147812b42da2 ]

The error code is missing in this code scenario, add the error code
'-EINVAL' to the return value 'err'.

Eliminate the follow smatch warning:

drivers/net/ethernet/mellanox/mlx4/main.c:3538 mlx4_load_one() warn:
missing error code 'err'.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Fixes: 7ae0e400cd ("net/mlx4_core: Flexible (asymmetric) allocation of EQs and MSI-X vectors for PF/VFs")
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-08-04 12:27:39 +02:00
..
alloc.c
catas.c
cmd.c
cq.c
crdump.c
en_clock.c
en_cq.c
en_dcb_nl.c
en_ethtool.c net/mlx4: Fix EEPROM dump support 2021-06-03 08:59:07 +02:00
en_main.c
en_netdev.c net/mlx4_en: update moderation when config reset 2021-03-17 17:03:34 +01:00
en_port.c
en_port.h
en_resources.c
en_rx.c mlx4: handle non-napi callers to napi_poll 2020-10-29 09:57:23 +01:00
en_selftest.c
en_tx.c drivers/net/ethernet: clean up unused assignments 2021-06-03 08:59:16 +02:00
eq.c
fw_qos.c
fw_qos.h
fw.c RDMA/mlx4: Do not map the core_clock page to user space unless enabled 2021-06-16 11:59:44 +02:00
fw.h RDMA/mlx4: Do not map the core_clock page to user space unless enabled 2021-06-16 11:59:44 +02:00
icm.c
icm.h
intf.c
Kconfig
main.c mlx4: Fix missing error code in mlx4_load_one() 2021-08-04 12:27:39 +02:00
Makefile
mcg.c
mlx4_en.h net/mlx4_en: update moderation when config reset 2021-03-17 17:03:34 +01:00
mlx4_stats.h
mlx4.h
mr.c net: ethernet: mlx4: Fix memory allocation in mlx4_buddy_init() 2020-09-09 19:12:27 +02:00
pd.c
port.c net/mlx4: Fix EEPROM dump support 2021-06-03 08:59:07 +02:00
profile.c
qp.c
reset.c
resource_tracker.c net/mlx4_core: Add missed mlx4_free_cmd_mailbox() 2021-03-04 10:26:38 +01:00
sense.c
srq.c