Fix some unbalanced sched_lock()/sched_unlock() pairs int the re-implemented VFS semaphore and message queue logic

This commit is contained in:
Gregory Nutt
2014-09-29 16:13:07 -06:00
parent e340d89990
commit 5462ede661
5 changed files with 12 additions and 4 deletions
+2 -1
View File
@@ -235,9 +235,10 @@ mqd_t mq_open(const char *mq_name, int oflags, ...)
inode->u.i_mqueue = msgq;
msgq->inode = inode;
}
sched_unlock();
}
sched_unlock();
return mqdes;
errout_with_msgq: