Hello, This series fix a few bugs in mass storage function, adds a warning message when binding function with not contiguous LUN ids and replace dynamically allocated luns array with static one what simplifies the code. Best regards, -- Krzysztof Opasiak Samsung R&D Institute Poland Samsung Electronics --- Changes since v3: - fix commit messages Changes since v2: - drop nluns from fsg_common as discussed with Michal - rebased onto balbi/fixes Krzysztof Opasiak (5): usb: gadget: mass_storage: Free buffers if create lun fails usb: gadget: mass_storage: Place EXPORT_SYMBOL_GPL() after func definition usb: gadget: storage-common: Set FSG_MAX_LUNS to 16 usb: gadget: mass_storage: Use static array for luns usb: gadget: mass_storage: Warn if LUNs ids are not contiguous drivers/usb/gadget/function/f_mass_storage.c | 143 +++++++++++--------------- drivers/usb/gadget/function/f_mass_storage.h | 4 - drivers/usb/gadget/function/storage_common.h | 2 +- drivers/usb/gadget/legacy/acm_ms.c | 6 -- drivers/usb/gadget/legacy/mass_storage.c | 6 -- drivers/usb/gadget/legacy/multi.c | 6 -- 6 files changed, 60 insertions(+), 107 deletions(-) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html