]> err.no Git - linux-2.6/blobdiff - kernel/fork.c
kill an unused PTR_ERR in bdev_cache_init()
[linux-2.6] / kernel / fork.c
index 1160f87ba70063385324be45511638c9f3e9421b..8adfe5ddb688ec9f49a28c9eb171e2e53d700fef 100644 (file)
@@ -1118,6 +1118,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
 #ifdef CONFIG_SECURITY
        p->security = NULL;
 #endif
+       p->cap_bset = current->cap_bset;
        p->io_context = NULL;
        p->audit_context = NULL;
        cgroup_fork(p);
@@ -1509,7 +1510,7 @@ long do_fork(unsigned long clone_flags,
                if (!(clone_flags & CLONE_STOPPED))
                        wake_up_new_task(p, clone_flags);
                else
-                       p->state = TASK_STOPPED;
+                       __set_task_state(p, TASK_STOPPED);
 
                if (unlikely (trace)) {
                        current->ptrace_message = nr;