summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-06-26 20:50:15 +0000
committergVisor bot <gvisor-bot@google.com>2020-06-26 20:50:15 +0000
commit29b2d4de0c269ee3515355b033b66c7b5b00a1b2 (patch)
treeedfd31f5686301caa449fd2f549d916c5c14b395 /pkg/sentry/syscalls
parent16560b937e915f1fb5f30729364a952364097a4c (diff)
parent54a31e219ca9d6086a367213a92d2a72ce3af07b (diff)
Merge release-20200622.1-29-g54a31e219 (automated)
Diffstat (limited to 'pkg/sentry/syscalls')
-rw-r--r--pkg/sentry/syscalls/linux/vfs2/inotify.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/syscalls/linux/vfs2/inotify.go b/pkg/sentry/syscalls/linux/vfs2/inotify.go
index 74e5287b7..5d98134a5 100644
--- a/pkg/sentry/syscalls/linux/vfs2/inotify.go
+++ b/pkg/sentry/syscalls/linux/vfs2/inotify.go
@@ -81,7 +81,7 @@ func InotifyAddWatch(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kern
// "EINVAL: The given event mask contains no valid events."
// -- inotify_add_watch(2)
- if validBits := mask & linux.ALL_INOTIFY_BITS; validBits == 0 {
+ if mask&linux.ALL_INOTIFY_BITS == 0 {
return 0, nil, syserror.EINVAL
}