]> git.karo-electronics.de Git - karo-tx-linux.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)
committerFelipe Balbi <balbi@ti.com>
Mon, 6 Jul 2015 17:34:08 +0000 (12:34 -0500)
commit8515bac01a983d277148e4fcc5f235bf603de577
tree55abb371941f179e3abb3147d6949478b9fe229a
parent43cacb03aabe62158d8e5da876054c7d48fc9963
usb: f_mass_storage: limit number of reported LUNs

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.

Cc: <stable@vger.kernel.org>
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>
drivers/usb/gadget/function/f_mass_storage.c