]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/fork.c
BUG_ON() Conversion in kernel/fork.c
[linux-2.6-omap-h63xx.git] / kernel / fork.c
index c21bae8c93b94bd8cfe60129af508a64ddb67c33..d93ab2ba729c9e5b5b16a8a2d796b823765a92c3 100644 (file)
@@ -769,8 +769,7 @@ int unshare_files(void)
        struct files_struct *files  = current->files;
        int rc;
 
-       if(!files)
-               BUG();
+       BUG_ON(!files);
 
        /* This can race but the race causes us to copy when we don't
           need to and drop the copy */
@@ -1021,6 +1020,7 @@ static task_t *copy_process(unsigned long clone_flags,
                p->mempolicy = NULL;
                goto bad_fork_cleanup_cpuset;
        }
+       mpol_fix_fork_child_flag(p);
 #endif
 
 #ifdef CONFIG_DEBUG_MUTEXES