aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 4bd6486aa67d..e0a2b449dea6 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -769,8 +769,7 @@ int unshare_files(void)
769 struct files_struct *files = current->files; 769 struct files_struct *files = current->files;
770 int rc; 770 int rc;
771 771
772 if(!files) 772 BUG_ON(!files);
773 BUG();
774 773
775 /* This can race but the race causes us to copy when we don't 774 /* This can race but the race causes us to copy when we don't
776 need to and drop the copy */ 775 need to and drop the copy */