From f2ed1daa01bb607a859df1df8d664e022835eee2 Mon Sep 17 00:00:00 2001 From: Nayana Bidari Date: Wed, 14 Aug 2024 10:55:39 -0700 Subject: [PATCH] Fix typo PiperOrigin-RevId: 662980515 --- runsc/boot/restore.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runsc/boot/restore.go b/runsc/boot/restore.go index 3963f2360..44069f8b5 100644 --- a/runsc/boot/restore.go +++ b/runsc/boot/restore.go @@ -128,7 +128,7 @@ func (r *restorer) restoreContainerInfo(l *Loader, info *containerInfo) error { return nil } -func createNetworStackForRestore(l *Loader) (*stack.Stack, inet.Stack) { +func createNetworkStackForRestore(l *Loader) (*stack.Stack, inet.Stack) { // Save the current network stack to slap on top of the one that was restored. curNetwork := l.k.RootNetworkNamespace().Stack() if eps, ok := curNetwork.(*netstack.Stack); ok { @@ -142,7 +142,7 @@ func (r *restorer) restore(l *Loader) error { // Create a new root network namespace with the network stack of the // old kernel to preserve the existing network configuration. - oldStack, oldInetStack := createNetworStackForRestore(l) + oldStack, oldInetStack := createNetworkStackForRestore(l) // Reset the network stack in the network namespace to nil before // replacing the kernel. This will not free the network stack when this