summaryrefslogtreecommitdiff
path: root/nuttx/fs/fs_unregisterblockdriver.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/fs/fs_unregisterblockdriver.c')
-rw-r--r--nuttx/fs/fs_unregisterblockdriver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/fs/fs_unregisterblockdriver.c b/nuttx/fs/fs_unregisterblockdriver.c
index ccf5a2aa9..0166da141 100644
--- a/nuttx/fs/fs_unregisterblockdriver.c
+++ b/nuttx/fs/fs_unregisterblockdriver.c
@@ -2,7 +2,7 @@
* fs/fs_unregisterblockdriver.c
*
* Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -74,9 +74,9 @@
int unregister_blockdriver(const char *path)
{
int ret;
+
inode_semtake();
ret = inode_remove(path);
inode_semgive();
return ret;
}
-