VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Andrea Arcangeli <aarcange@redhat.com> 2017-02-22 15:42:12 -0800 committer: Linus Torvalds <torvalds@linux-foundation.org> 2017-02-22 16:41:28 -0800 commit: 8474901a33d8a27958bfa99e78736863abd67874 parent: a4605a61d642fe9b9de050d356432ecac82cc701
Commit Summary:
userfaultfd: convert BUG() to WARN_ON_ONCE()
Diffstat:
1 file changed, 2 insertions, 1 deletion
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;
 	}
 }