Skip to content
Commit e5fd39d9 authored by Michal Nazarewicz's avatar Michal Nazarewicz Committed by Greg Kroah-Hartman
Browse files

USB: gadget: f_mass_storage: fixed fs descriptors not being updated



The full speed descriptors were copied to the usb_function structure
in the fsg_bind_config function before call to the usb_ep_autoconfig.
The usb_ep_autoconfig was called in fsg_bind using the original
descriptors.  In effect copied descriptors were not updated.

This patch changes the copy full speed descriptors after the call to
usb_op_autoconfig is performed.  This way, copied full speed
descriptors have updated values.

Signed-off-by: default avatarMichal Nazarewicz <m.nazarewicz@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Reported-by: default avatarDries Van Puymbroeck <Dries.VanPuymbroeck@dekimo.com>
Tested-by: default avatarDries Van Puymbroeck <Dries.VanPuymbroeck@dekimo.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c0f1f8e3
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