]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: f_mass_storage: limit number of reported LUNs
authorMichal Nazarewicz <mina86@mina86.com>
Fri, 19 Jun 2015 21:56:34 +0000 (23:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:05 +0000 (09:29 -0700)
commit1fd1fe35f15436869e182c1fb075d9f837dcf0c2
tree828ad4ecfb3f10f9ccf20bcd793de863d1bf13dd
parent35dff3a0bd57b32df5d7990fddbf4e54d96a4621
usb: f_mass_storage: limit number of reported LUNs

commit 8515bac01a983d277148e4fcc5f235bf603de577 upstream.

Mass storage function created via configfs always reports eight LUNs
to the hosts even if only one LUN has been configured.  Adjust the
number when the USB function is allocated based on LUNs that user
has created.

Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_mass_storage.c