fib_algo: set vnet when destroying algo instance

Reported by:	Konrad Kręciwilk <konrad.kreciwilk@korbank.pl>
MFC after:	2 weeks
This commit is contained in:
Alexander V. Chernikov 2022-08-06 12:44:44 +00:00
parent 1ffd352bc2
commit 93dd3adac7

View File

@ -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();
}
/*