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:
a08b43a
)
USB: wusbcore/wa-xfer, fix lock imbalance
author
Jiri Slaby
<
[email protected]
>
Wed, 11 Mar 2009 20:47:40 +0000
(21:47 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 17 Mar 2009 21:01:29 +0000
(14:01 -0700)
Fix locking on one wa_urb_enqueue_b's fail path. There was omitted unlock.
Signed-off-by: Jiri Slaby <
[email protected]
>
Cc: Inaky Perez-Gonzalez <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/wusbcore/wa-xfer.c
patch
|
blob
|
history
diff --git
a/drivers/usb/wusbcore/wa-xfer.c
b/drivers/usb/wusbcore/wa-xfer.c
index 238a96aee3a1c387c6c386154caf72ddd88a36c8..613a5fc490d3575a200e0876be50eb31c354549e 100644
(file)
--- a/
drivers/usb/wusbcore/wa-xfer.c
+++ b/
drivers/usb/wusbcore/wa-xfer.c
@@
-921,8
+921,10
@@
static void wa_urb_enqueue_b(struct wa_xfer *xfer)
result = -ENODEV;
/* FIXME: segmentation broken -- kills DWA */
mutex_lock(&wusbhc->mutex); /* get a WUSB dev */
- if (urb->dev == NULL)
+ if (urb->dev == NULL) {
+ mutex_unlock(&wusbhc->mutex);
goto error_dev_gone;
+ }
wusb_dev = __wusb_dev_get_by_usb_dev(wusbhc, urb->dev);
if (wusb_dev == NULL) {
mutex_unlock(&wusbhc->mutex);