summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_gre.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2018-01-18 15:42:10 +0100
committerDavid S. Miller <davem@davemloft.net>2018-01-18 20:54:58 -0500
commited604c5da34d96ae289c67c46dedd7dfd9fa795e (patch)
tree858fc00d3d83135c84ae254d88fab682c8809455 /net/ipv6/ip6_gre.c
parentd0c081b49137cd3200f2023c0875723be66e7ce5 (diff)
mlxsw: spectrum_router: Free LPM tree upon failure
When a new LPM tree is created, we try to replace the trees in the existing virtual routers with it. If we fail, the tree needs to be freed. Currently, this does not happen in the unlikely case where we fail to bind the tree to the first virtual router, since its reference count never transitions from 1 to 0. Fix that by taking a reference before binding the tree. Fixes: fc922bb0dd94 ("mlxsw: spectrum_router: Use one LPM tree for all virtual routers") Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_gre.c')
0 files changed, 0 insertions, 0 deletions