diff options
author | Steve French <sfrench@us.ibm.com> | 2006-02-01 15:16:53 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-02-01 15:16:53 -0500 |
commit | e6da74e1f20ea7822e52a9e4fbd3d25bd907e471 (patch) | |
tree | d9b3bc7e654fb788d1cf3a1759b1b3c74cc56a04 /drivers/usb/gadget/zero.c | |
parent | 1877c9ea66a29563987f22d0a86c66f438a87ce2 (diff) | |
parent | 3c3b809e256c417847f1a96b2f9d9f66c7fcb02c (diff) |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'drivers/usb/gadget/zero.c')
-rw-r--r-- | drivers/usb/gadget/zero.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/usb/gadget/zero.c b/drivers/usb/gadget/zero.c index 2fc110d3ad5a..ae7a1c0f5748 100644 --- a/drivers/usb/gadget/zero.c +++ b/drivers/usb/gadget/zero.c | |||
@@ -165,8 +165,8 @@ static unsigned buflen = 4096; | |||
165 | static unsigned qlen = 32; | 165 | static unsigned qlen = 32; |
166 | static unsigned pattern = 0; | 166 | static unsigned pattern = 0; |
167 | 167 | ||
168 | module_param (buflen, uint, S_IRUGO|S_IWUSR); | 168 | module_param (buflen, uint, S_IRUGO); |
169 | module_param (qlen, uint, S_IRUGO|S_IWUSR); | 169 | module_param (qlen, uint, S_IRUGO); |
170 | module_param (pattern, uint, S_IRUGO|S_IWUSR); | 170 | module_param (pattern, uint, S_IRUGO|S_IWUSR); |
171 | 171 | ||
172 | /* | 172 | /* |
@@ -1127,8 +1127,10 @@ zero_unbind (struct usb_gadget *gadget) | |||
1127 | DBG (dev, "unbind\n"); | 1127 | DBG (dev, "unbind\n"); |
1128 | 1128 | ||
1129 | /* we've already been disconnected ... no i/o is active */ | 1129 | /* we've already been disconnected ... no i/o is active */ |
1130 | if (dev->req) | 1130 | if (dev->req) { |
1131 | dev->req->length = USB_BUFSIZ; | ||
1131 | free_ep_req (gadget->ep0, dev->req); | 1132 | free_ep_req (gadget->ep0, dev->req); |
1133 | } | ||
1132 | del_timer_sync (&dev->resume); | 1134 | del_timer_sync (&dev->resume); |
1133 | kfree (dev); | 1135 | kfree (dev); |
1134 | set_gadget_data (gadget, NULL); | 1136 | set_gadget_data (gadget, NULL); |