]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ipc/mqueue: lock() => unlock() typo
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 8 Dec 2011 04:42:56 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Dec 2011 06:43:37 +0000 (17:43 +1100)
There was a double lock typo introduced in b085f4bd6b21 "user namespace:
make signal.c respect user namespaces"

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Matt Helsley <matthltc@us.ibm.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/mqueue.c

index 691cfee652f98e2c589b0a44ad07ab33033c2905..c246c8307ee761397aadcb18feb8db96b949c0b3 100644 (file)
@@ -558,7 +558,7 @@ static void __do_notify(struct mqueue_inode_info *info)
                                                ns_of_pid(info->notify_owner));
                        sig_i.si_uid = user_ns_map_uid(info->user->user_ns,
                                                current_cred(), current_uid());
-                       rcu_read_lock();
+                       rcu_read_unlock();
 
                        kill_pid_info(info->notify.sigev_signo,
                                      &sig_i, info->notify_owner);