From: Michal Nazarewicz Date: Mon, 29 Mar 2010 12:01:32 +0000 (+0200) Subject: USB: gadget: f_mass_storage: per function X-Git-Tag: v2.6.35-rc1~471^2~160 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fb2c2a1692b8f77be25d38f8802b0142cb6e6bc;p=pandora-kernel.git USB: gadget: f_mass_storage: per function Mass Storage Function (MSF) used the same descriptors for each usb_function instance (meaning usb_function::descriptors of different functions pointed to the same static area (the same was true for usb_function::hs_descriptors)). This would leads to problems if MSF were used in several USB configurations with different interface and/or endpoint numbers. Descriptors for all configurations would have interface/endpoint numbers overwritten by the values valid for the last configuration. This patch adds code that copies the descriptors each time MSF is added to USB configuration (that is for each usb_function). Signed-off-by: Michal Nazarewicz Cc: Kyungmin Park --- Reading git-diff-tree failed