aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/mqueue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index c4ae32ec6c6b..e4e47f647446 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -848,7 +848,8 @@ out_putfd:
848 fd = error; 848 fd = error;
849 } 849 }
850 mutex_unlock(&root->d_inode->i_mutex); 850 mutex_unlock(&root->d_inode->i_mutex);
851 mnt_drop_write(mnt); 851 if (!ro)
852 mnt_drop_write(mnt);
852out_putname: 853out_putname:
853 putname(name); 854 putname(name);
854 return fd; 855 return fd;