Commit 8474901a authored by Andrea Arcangeli's avatar Andrea Arcangeli Committed by Linus Torvalds
Browse files

userfaultfd: convert BUG() to WARN_ON_ONCE()

Avoid BUG_ON()s and only WARN instead.  This is just a cleanup, it can't
make any runtime difference.  This BUG_ON has never triggered and cannot


Signed-off-by: default avatarAndrea Arcangeli <>
Cc: "Dr. David Alan Gilbert" <>
Cc: Hillf Danton <>
Cc: Michael Rapoport <>
Cc: Mike Kravetz <>
Cc: Mike Rapoport <>
Cc: Pavel Emelyanov <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent a4605a61
......@@ -574,7 +574,8 @@ static unsigned int userfaultfd_poll(struct file *file, poll_table *wait)
ret = POLLIN;
return ret;
return POLLERR;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment