summaryrefslogtreecommitdiff
path: root/libdiskfs/file-getcontrol.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-05-20 05:12:53 +0000
committerMiles Bader <miles@gnu.org>1995-05-20 05:12:53 +0000
commitd0635863b90c77f826aa0a54bdb2157dfbf98bf3 (patch)
tree3d3e19be1c5cb038b1423f30852eae47c9d945e8 /libdiskfs/file-getcontrol.c
parentc8ed7dc0cd4a2a791588d8a4afb162974697d9f9 (diff)
(diskfs_S_file_getcontrol): Unlock _diskfs_control_lock lock instead of
locking it again!
Diffstat (limited to 'libdiskfs/file-getcontrol.c')
-rw-r--r--libdiskfs/file-getcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/file-getcontrol.c b/libdiskfs/file-getcontrol.c
index 4ea2ae8e..032c498f 100644
--- a/libdiskfs/file-getcontrol.c
+++ b/libdiskfs/file-getcontrol.c
@@ -35,7 +35,7 @@ diskfs_S_file_getcontrol (struct protid *cred,
{
spin_lock (&_diskfs_control_lock);
_diskfs_ncontrol_ports++;
- spin_lock (&_diskfs_control_lock);
+ spin_unlock (&_diskfs_control_lock);
*control = ports_get_right (ports_allocate_port
(sizeof (struct port_info), PT_CTL));
*controltype = MACH_MSG_TYPE_MAKE_SEND;