USB: g_file_storage: don't generate automatic serial string
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 3 Sep 2010 15:15:41 +0000 (11:15 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:21:28 +0000 (10:21 -0700)
commitd8087427ccefc0b3364735b96274375246fd452c
treedcdb0485977e21799e9d101a501cfb885a4fe8d6
parent10f47168721c0143f23e94eac2fc797aa643de39
USB: g_file_storage: don't generate automatic serial string

This patch (as1413) changes g_file_storage to avoid generating a bogus
automatic serial-number string descriptor.  If the user doesn't provide
a valid serial number via a module parameter then a warning is logged
and the gadget won't have any serial string descriptor at all.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: David Brownell <david-b@pacbell.net>
CC: Michal Nazarewicz <m.nazarewicz@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/file_storage.c
drivers/usb/gadget/storage_common.c