[rtems commit] dosfs: Use proper semaphore attr for mutex

Sebastian Huber sebh at rtems.org
Mon Jun 6 11:16:25 UTC 2016


Module:    rtems
Branch:    master
Commit:    a7f0096b730ebebb0b22b5eacb2ea20cd130344d
Changeset: http://git.rtems.org/rtems/commit/?id=a7f0096b730ebebb0b22b5eacb2ea20cd130344d

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jun  6 12:50:23 2016 +0200

dosfs: Use proper semaphore attr for mutex

Close #2727.

---

 cpukit/libfs/src/dosfs/msdos_initsupp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cpukit/libfs/src/dosfs/msdos_initsupp.c b/cpukit/libfs/src/dosfs/msdos_initsupp.c
index 23c8756..ccaf519 100644
--- a/cpukit/libfs/src/dosfs/msdos_initsupp.c
+++ b/cpukit/libfs/src/dosfs/msdos_initsupp.c
@@ -135,7 +135,8 @@ msdos_initialize_support(
 
     sc = rtems_semaphore_create(3,
                                 1,
-                                RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
+                                RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY |
+                                RTEMS_INHERIT_PRIORITY,
                                 0,
                                 &fs_info->vol_sema);
     if (sc != RTEMS_SUCCESSFUL)




More information about the vc mailing list