projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22c4386
)
[PATCH] USB gadgetfs: fixes an error on writing to endpoint file
author
Pavol Kurina
<kurina@gmx.net>
Wed, 7 Sep 2005 16:49:34 +0000
(09:49 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 12 Sep 2005 19:23:45 +0000
(12:23 -0700)
this patch fixes an "Invalid argument" error returned by a write to an
endpoint-file after reopening it in the gadgetfs module in the kernel
2.6.12.
This was testet only with dummy_hcd module!
Signed-off-by: Pavol Kurina <kurina@gmx.net>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
drivers/usb/gadget/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/inode.c
b/drivers/usb/gadget/inode.c
index 020815397a49ddf59743ecb1d4d0ce9443856adc..5c40980a5bd94f263e3f7618dff22a96896fa9c1 100644
(file)
--- a/
drivers/usb/gadget/inode.c
+++ b/
drivers/usb/gadget/inode.c
@@
-483,6
+483,7
@@
ep_release (struct inode *inode, struct file *fd)
data->state = STATE_EP_DISABLED;
data->desc.bDescriptorType = 0;
data->hs_desc.bDescriptorType = 0;
+ usb_ep_disable(data->ep);
}
put_ep (data);
return 0;