aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSundar R Iyer <sundar.iyer@stericsson.com>2010-03-25 19:34:27 +0530
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:44:50 -0600
commit0fd2aed6be7bc6347c5ae4a436df791a921048bc (patch)
treecd4d184af8cf271e8776a0d1918af1e57513d148
parent1ddd6afcb8ab6718e4e33b44276b451bb84019ca (diff)
u8500-msw : fix improper locking
Signed-off-by: Sundar R Iyer <sundar.iyer@stericsson.com>
-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);