sky2: Threshold for Pause Packet is set wrong
[pandora-kernel.git] / ipc / mqueue.c
index e5c4f60..3953fda 100644 (file)
@@ -840,7 +840,8 @@ out_putfd:
                fd = error;
        }
        mutex_unlock(&root->d_inode->i_mutex);
-       mnt_drop_write(mnt);
+       if (!ro)
+               mnt_drop_write(mnt);
 out_putname:
        putname(name);
        return fd;