[rtems commit] semunlink.c: Add missing _Objects_Allocator_unlock()
Joel Sherril
joel at rtems.org
Tue Apr 14 19:08:27 UTC 2015
Module: rtems
Branch: master
Commit: 5049dca6c5dfdac12daadbf07385dc3ab006b51e
Changeset: http://git.rtems.org/rtems/commit/?id=5049dca6c5dfdac12daadbf07385dc3ab006b51e
Author: Daniel Krueger <daniel.krueger at systec-electronic.com>
Date: Fri Mar 13 12:54:16 2015 +0000
semunlink.c: Add missing _Objects_Allocator_unlock()
updates 2319.
Signed-off-by: Daniel Krueger <daniel.krueger at systec-electronic.com>
---
cpukit/posix/src/semunlink.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/cpukit/posix/src/semunlink.c b/cpukit/posix/src/semunlink.c
index 40d5660..d5b6de7 100644
--- a/cpukit/posix/src/semunlink.c
+++ b/cpukit/posix/src/semunlink.c
@@ -46,6 +46,7 @@ int sem_unlink(
status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id, &name_len );
if ( status != 0 ) {
_Thread_Enable_dispatch();
+ _Objects_Allocator_unlock();
rtems_set_errno_and_return_minus_one( status );
}
More information about the vc
mailing list