summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/kernel')
-rw-r--r--pkg/sentry/kernel/kernel.go4
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))