Skip to content

Commit

Permalink
[PATCH] USB gadgetfs: fixes an error on writing to endpoint file
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavol Kurina authored and Greg Kroah-Hartman committed Sep 12, 2005
1 parent 22c4386 commit 4809ecc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/gadget/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4809ecc

Please sign in to comment.