From 66fac03fae3af9dded964b01c89662819dbfc5c2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 16 Mar 2017 11:54:29 +0100 Subject: libio: Fix deadlock in location management Perform a context-dependent deferred location release to avoid a deadlock on the file system instance locks, for example during a chdir(). Update #2936. --- cpukit/libcsupport/src/chdir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libcsupport/src/chdir.c') diff --git a/cpukit/libcsupport/src/chdir.c b/cpukit/libcsupport/src/chdir.c index 4bcb30075e..83a359a982 100644 --- a/cpukit/libcsupport/src/chdir.c +++ b/cpukit/libcsupport/src/chdir.c @@ -39,7 +39,7 @@ int rtems_filesystem_chdir( rtems_filesystem_location_info_t *loc ) ); } else { rtems_filesystem_location_error( &global_loc->location, ENOTDIR ); - rtems_filesystem_global_location_release( global_loc ); + rtems_filesystem_global_location_release( global_loc, true ); rv = -1; } -- cgit v1.2.3