From 93dd3adac7d84528c4ba4b0c3992931a38dbbc24 Mon Sep 17 00:00:00 2001 From: "Alexander V. Chernikov" Date: Sat, 6 Aug 2022 12:44:44 +0000 Subject: [PATCH] fib_algo: set vnet when destroying algo instance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported by: Konrad Kręciwilk MFC after: 2 weeks --- sys/net/route/fib_algo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/net/route/fib_algo.c b/sys/net/route/fib_algo.c index 42ad3f43d9cf..1274e5e90bd4 100644 --- a/sys/net/route/fib_algo.c +++ b/sys/net/route/fib_algo.c @@ -1135,7 +1135,9 @@ destroy_fd_instance_epoch(epoch_context_t ctx) fd = __containerof(ctx, struct fib_data, fd_epoch_ctx); + CURVNET_SET(fd->fd_vnet); destroy_fd_instance(fd); + CURVNET_RESTORE(); } /*