Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Ticket #2319: 0001-Fix-missing-_Objects_Allocator_unlock-in-sem_unlink.patch

File 0001-Fix-missing-_Objects_Allocator_unlock-in-sem_unlink.patch, 835 bytes (added by Daniel Krüger, on 04/09/15 at 14:55:16)
  • cpukit/posix/src/semunlink.c

    From 769f7206bdc7ed19fb2841c42a730cb40496e398 Mon Sep 17 00:00:00 2001
    From: Daniel Krueger <daniel.krueger@systec-electronic.com>
    Date: Fri, 13 Mar 2015 12:54:16 +0000
    Subject: [PATCH] Fix missing _Objects_Allocator_unlock in sem_unlink()
    
    Signed-off-by: Daniel Krueger <daniel.krueger@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 b int sem_unlink( 
    4646  status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id, &name_len );
    4747  if ( status != 0 ) {
    4848    _Thread_Enable_dispatch();
     49    _Objects_Allocator_unlock();
    4950    rtems_set_errno_and_return_minus_one( status );
    5051  }
    5152