]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/fork.c
[PATCH] unshare: Use rcu_assign_pointer when setting sighand
[linux-2.6-omap-h63xx.git] / kernel / fork.c
index ccdfbb16c86d541f035ebb844c372c23eef053d9..46060cb24af0e06a7c21fdb67978f33644abbc3d 100644 (file)
@@ -1569,7 +1569,7 @@ asmlinkage long sys_unshare(unsigned long unshare_flags)
 
                if (new_sigh) {
                        sigh = current->sighand;
-                       current->sighand = new_sigh;
+                       rcu_assign_pointer(current->sighand, new_sigh);
                        new_sigh = sigh;
                }