Commit 4809ecc2 authored by Pavol Kurina's avatar Pavol Kurina Committed by Greg Kroah-Hartman

[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: default avatarPavol Kurina  <kurina@gmx.net>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
parent 22c43863
...@@ -483,6 +483,7 @@ ep_release (struct inode *inode, struct file *fd) ...@@ -483,6 +483,7 @@ ep_release (struct inode *inode, struct file *fd)
data->state = STATE_EP_DISABLED; data->state = STATE_EP_DISABLED;
data->desc.bDescriptorType = 0; data->desc.bDescriptorType = 0;
data->hs_desc.bDescriptorType = 0; data->hs_desc.bDescriptorType = 0;
usb_ep_disable(data->ep);
} }
put_ep (data); put_ep (data);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment