summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-11-18 03:06:05 +0000
committergVisor bot <gvisor-bot@google.com>2020-11-18 03:06:05 +0000
commit752e52cd6c897f21141b28c7b2d914db0c4e440c (patch)
tree5dbadfb96c2e2cec9a382eaa49a5e5d21b4fd4d3 /pkg/sentry
parent99ee4465b2972bd74bfd041ad89284815be7a876 (diff)
parent05223889bd74faf0f3967e58fa11e3bdf1a518d7 (diff)
Merge release-20201109.0-64-g05223889b (automated)
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/fsimpl/fuse/dev.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fsimpl/fuse/dev.go b/pkg/sentry/fsimpl/fuse/dev.go
index 89c3ef079..1bbe6fdb7 100644
--- a/pkg/sentry/fsimpl/fuse/dev.go
+++ b/pkg/sentry/fsimpl/fuse/dev.go
@@ -363,7 +363,7 @@ func (fd *DeviceFD) Readiness(mask waiter.EventMask) waiter.EventMask {
func (fd *DeviceFD) readinessLocked(mask waiter.EventMask) waiter.EventMask {
var ready waiter.EventMask
- if fd.fs.umounted {
+ if fd.fs == nil || fd.fs.umounted {
ready |= waiter.EventErr
return ready & mask
}