diff options
author | Pavol Kurina <kurina@gmx.net> | 2005-09-07 12:49:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-12 15:23:45 -0400 |
commit | 4809ecc29935893d954ab9244899777ffaca40ac (patch) | |
tree | f1ff7c202eeb7469c30781b4639613e8bb7dcbe5 /drivers/usb | |
parent | 22c438632850c0d6257b45c90afed0cea6953afc (diff) |
[PATCH] USB gadgetfs: fixes an error on writing to endpoint file
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c index 020815397a49..5c40980a5bd9 100644 --- a/drivers/usb/gadget/inode.c +++ b/drivers/usb/gadget/inode.c | |||
@@ -483,6 +483,7 @@ ep_release (struct inode *inode, struct file *fd) | |||
483 | data->state = STATE_EP_DISABLED; | 483 | data->state = STATE_EP_DISABLED; |
484 | data->desc.bDescriptorType = 0; | 484 | data->desc.bDescriptorType = 0; |
485 | data->hs_desc.bDescriptorType = 0; | 485 | data->hs_desc.bDescriptorType = 0; |
486 | usb_ep_disable(data->ep); | ||
486 | } | 487 | } |
487 | put_ep (data); | 488 | put_ep (data); |
488 | return 0; | 489 | return 0; |