git: 8766004f0b7c - stable/13 - fib_algo: set vnet when destroying algo instance
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Jan 2023 21:25:01 UTC
The branch stable/13 has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=8766004f0b7ca32ebda7e431931e3c948306a2a4 commit 8766004f0b7ca32ebda7e431931e3c948306a2a4 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2022-08-06 12:44:44 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2023-01-13 21:18:26 +0000 fib_algo: set vnet when destroying algo instance Reported by: Konrad Kręciwilk <konrad.kreciwilk@korbank.pl> MFC after: 2 weeks (cherry picked from commit 93dd3adac7d84528c4ba4b0c3992931a38dbbc24) --- 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(); } /*