git: 93dd3adac7d8 - main - fib_algo: set vnet when destroying algo instance
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 Aug 2022 12:53:07 UTC
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=93dd3adac7d84528c4ba4b0c3992931a38dbbc24 commit 93dd3adac7d84528c4ba4b0c3992931a38dbbc24 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2022-08-06 12:44:44 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2022-08-06 12:51:22 +0000 fib_algo: set vnet when destroying algo instance Reported by: Konrad Kręciwilk <konrad.kreciwilk@korbank.pl> 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(); } /*