]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0acb49d576fc6564aea81185c7b06de2c325b205
treedcdb0485977e21799e9d101a501cfb885a4fe8d6
parent33a5599724e7675a17d64a496293c8f8120f6896
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