]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: Fix missing error code in mlx4_load_one()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 23 Jul 2021 10:36:09 +0000 (18:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jul 2021 09:47:24 +0000 (10:47 +0100)
commit28e67d7b4647a851300d151ff61f17b4259c7829
treeb166a7a994addaacc9914a24244689f7062aad68
parentabd5cb559d9d6fb6d14c1d79319c1e70d0e5fe58
mlx4: Fix missing error code in mlx4_load_one()

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: 2c2c54eda995 ("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>
drivers/net/ethernet/mellanox/mlx4/main.c