projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
909b6c3
)
USB: misc/adutux, fix lock imbalance
author
Jiri Slaby
<
[email protected]
>
Wed, 11 Mar 2009 20:47:38 +0000
(21:47 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 17 Mar 2009 21:01:29 +0000
(14:01 -0700)
Don't unlock adutux_mutex when not held.
Signed-off-by: Jiri Slaby <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/misc/adutux.c
patch
|
blob
|
history
diff --git
a/drivers/usb/misc/adutux.c
b/drivers/usb/misc/adutux.c
index 7b6922e08ed1bd2ecfcc45fd6a12fe58529da2b6..20352654201399d78fb7c265285c714694d261f9 100644
(file)
--- a/
drivers/usb/misc/adutux.c
+++ b/
drivers/usb/misc/adutux.c
@@
-376,7
+376,7
@@
static int adu_release(struct inode *inode, struct file *file)
if (dev->open_count <= 0) {
dbg(1," %s : device not opened", __func__);
retval = -ENODEV;
- goto
exit
;
+ goto
unlock
;
}
adu_release_internal(dev);
@@
-385,9
+385,9
@@
static int adu_release(struct inode *inode, struct file *file)
if (!dev->open_count) /* ... and we're the last user */
adu_delete(dev);
}
-
-exit:
+unlock:
mutex_unlock(&adutux_mutex);
+exit:
dbg(2," %s : leave, return value %d", __func__, retval);
return retval;
}