diff options
author | 2022-08-26 18:03:30 +0300 | |
---|---|---|
committer | 2022-08-30 23:17:39 -0700 | |
commit | 57688eb887af3db7f1d7f43f2c1babb548b01a34 (patch) | |
tree | aea59d6a29206217ee613743982940bfe2af0d92 /drivers/net/dsa/microchip/ksz_common.c | |
parent | net/mlx5e: Do not use err uninitialized in mlx5e_rep_add_meta_tunnel_rule() (diff) | |
download | linux-dev-57688eb887af3db7f1d7f43f2c1babb548b01a34.tar.xz linux-dev-57688eb887af3db7f1d7f43f2c1babb548b01a34.zip |
mlxsw: minimal: Return -ENOMEM on allocation failure
These error paths return success but they should return -ENOMEM.
Fixes: 01328e23a476 ("mlxsw: minimal: Extend module to port mapping with slot index")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/YwjgwoJ3M7Kdq9VK@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.c')
0 files changed, 0 insertions, 0 deletions