Commit ccf14362 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

[PATCH] USB: Initialize endpoint autoconfig in g_file_storage

This one-line patch corrects a simple problem in the g_file_storage
driver.  It neglected to initialize the endpoint-autoconfiguration library
before using it.  Please apply.
Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent a5a5820f
...@@ -3834,6 +3834,7 @@ static int __init fsg_bind(struct usb_gadget *gadget) ...@@ -3834,6 +3834,7 @@ static int __init fsg_bind(struct usb_gadget *gadget)
} }
/* Find all the endpoints we will use */ /* Find all the endpoints we will use */
usb_ep_autoconfig_reset(gadget);
ep = usb_ep_autoconfig(gadget, &fs_bulk_in_desc); ep = usb_ep_autoconfig(gadget, &fs_bulk_in_desc);
if (!ep) if (!ep)
goto autoconf_fail; goto autoconf_fail;
......
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