[rtems commit] libblock: Use unprotected chain extract
Sebastian Huber
sebh at rtems.org
Tue Aug 27 08:44:49 UTC 2013
Module: rtems
Branch: master
Commit: 07ad4b6660f3ff9e52c430e6f13f672b50791603
Changeset: http://git.rtems.org/rtems/commit/?id=07ad4b6660f3ff9e52c430e6f13f672b50791603
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Aug 26 10:44:20 2013 +0200
libblock: Use unprotected chain extract
This area is protected by the media mutex.
---
cpukit/libblock/src/media.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cpukit/libblock/src/media.c b/cpukit/libblock/src/media.c
index c4415e4..a81a94d 100644
--- a/cpukit/libblock/src/media.c
+++ b/cpukit/libblock/src/media.c
@@ -216,7 +216,7 @@ static media_item *get_media_item(
static void free_item(media_item *item)
{
- rtems_chain_extract(&item->node);
+ rtems_chain_extract_unprotected(&item->node);
free(item->mount_path);
free(item);
}
More information about the vc
mailing list