aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/msw/isa_access.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/msw/isa_access.c')
-rw-r--r--drivers/misc/msw/isa_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/msw/isa_access.c b/drivers/misc/msw/isa_access.c
index 06032fd11c9..a5b947a39cf 100644
--- a/drivers/misc/msw/isa_access.c
+++ b/drivers/misc/msw/isa_access.c
@@ -789,7 +789,7 @@ static int isa_close(struct inode *inode, struct file *filp)
if (atomic_dec_and_test(&p_isa_context_hsi->isOpen[m])) {
atomic_inc(&p_isa_context_hsi->isOpen[m]);
printk(KERN_ALERT NAME ":Device not opened yet\n");
- mutex_lock(&isa_lock);
+ mutex_unlock(&isa_lock);
return -ENODEV;
}
atomic_set(&p_isa_context_hsi->isOpen[m], 1);