diff options
Diffstat (limited to 'pkg/sentry/kernel/kernel.go')
-rw-r--r-- | pkg/sentry/kernel/kernel.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/kernel.go b/pkg/sentry/kernel/kernel.go index 25c8dd885..536461bbd 100644 --- a/pkg/sentry/kernel/kernel.go +++ b/pkg/sentry/kernel/kernel.go @@ -418,7 +418,9 @@ func (k *Kernel) LoadFrom(r io.Reader, p platform.Platform, net inet.Stack) erro // Ensure that all pending asynchronous work is complete: // - namedpipe opening // - inode file opening - fs.AsyncBarrier() + if err := fs.AsyncErrorBarrier(); err != nil { + return err + } log.Infof("Overall load took [%s]", time.Since(loadStart)) |