]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mlxsw: spectrum_dpipe: Add missing error path
authorIdo Schimmel <idosch@mellanox.com>
Fri, 7 Feb 2020 17:26:28 +0000 (19:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Feb 2020 17:47:01 +0000 (18:47 +0100)
commit3a99cbb6fa7bca1995586ec2dc21b0368aad4937
tree5306ed544549ffceef862deb5bd0d94e9dc82720
parent36844c855b896f90bab51ccecf72940eb7e3cfe1
mlxsw: spectrum_dpipe: Add missing error path

In case devlink_dpipe_entry_ctx_prepare() failed, release RTNL that was
previously taken and free the memory allocated by
mlxsw_sp_erif_entry_prepare().

Fixes: 2ba5999f009d ("mlxsw: spectrum: Add Support for erif table entries access")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c