summaryrefslogtreecommitdiff
path: root/fs/userfaultfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/userfaultfd.c')
-rw-r--r--fs/userfaultfd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c
index cf1856cb25d2..71e917387ec3 100644
--- a/fs/userfaultfd.c
+++ b/fs/userfaultfd.c
@@ -574,7 +574,8 @@ static unsigned int userfaultfd_poll(struct file *file, poll_table *wait)
ret = POLLIN;
return ret;
default:
- BUG();
+ WARN_ON_ONCE(1);
+ return POLLERR;
}
}