[RTEMS Project] #2727: FAT file systems use wrong semaphore for mutual exclusion

RTEMS trac trac at rtems.org
Mon Jun 6 09:06:04 UTC 2016


#2727: FAT file systems use wrong semaphore for mutual exclusion
-----------------------------+-----------------------------
 Reporter:  sebastian.huber  |      Owner:  sebastian.huber
     Type:  defect           |     Status:  new
 Priority:  normal           |  Milestone:  4.12
Component:  filesystem       |    Version:  4.10
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 {{{
 cpukit/libfs/src/dosfs/msdos_initsupp.c-
 cpukit/libfs/src/dosfs/msdos_initsupp.c-    sc = rtems_semaphore_create(3,
 cpukit/libfs/src/dosfs/msdos_initsupp.c-                                1,
 cpukit/libfs/src/dosfs/msdos_initsupp.c:
 RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
 cpukit/libfs/src/dosfs/msdos_initsupp.c-                                0,
 cpukit/libfs/src/dosfs/msdos_initsupp.c-
 &fs_info->vol_sema);
 cpukit/libfs/src/dosfs/msdos_initsupp.c
 }}}

 Should use a binary semaphore with inherit priority.

--
Ticket URL: <http://devel.rtems.org/ticket/2727>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list