Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.6.24-rc3-git7 /ipc/mqueue.c

Filename:/ipc/mqueue.c
Lines Added:4
Lines Deleted:2
Also changed in: (Previous) 2.6.24-rc3-git6  2.6.24-rc3-git5  2.6.24-rc3  2.6.24-rc2-git6  2.6.24-rc2-git5  2.6.24-rc2-git4 
(Following) 2.6.24-rc4  2.6.24-rc5  2.6.24-rc6  2.6.24-rc7  2.6.24-rc8  2.6.24 

Location
[  2.6.24-rc3-git7
  [  ipc
     o  mqueue.c

Patch

diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index 1e04cd4..6ca7b97 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -1138,8 +1138,10 @@ asmlinkage long sys_mq_getsetattr(mqd_t mqdes,
    omqstat.mq_flags = filp->f_flags & O_NONBLOCK;
    if (u_mqstat) {
       ret = audit_mq_getsetattr(mqdes, &mqstat);
-      if (ret != 0)
-         goto out;
+      if (ret != 0) {
+         spin_unlock(&info->lock);
+         goto out_fput;
+      }
       if (mqstat.mq_flags & O_NONBLOCK)
          filp->f_flags |= O_NONBLOCK;
       else


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.