usb: gadget: storage_common: use kstrto*() [bug fix]
authorMichal Nazarewicz <mina86@mina86.com>
Thu, 14 Apr 2011 09:55:43 +0000 (11:55 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 30 Apr 2011 00:24:36 +0000 (17:24 -0700)
commitfd4477b09e13f60c7d9e497311ea6410a94aaae8
tree01137169557a7433f3ddcbcb6b00d61c0d61f700
parent865835fa441fcabc65251f14280df3055fe82d0f
usb: gadget: storage_common: use kstrto*() [bug fix]

This commit fixes an embarrassing bug in the "storage_common:
use kstrto*()" patch which caused fsg_store_ro() to return
zero instead of the length of the consumed buffer.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/storage_common.c