From 9eb908663a9a4a69adb6e3590079e856ddede765 Mon Sep 17 00:00:00 2001 From: Xinyu Chen Date: Tue, 25 Oct 2011 16:22:07 +0800 Subject: ENGR00160725 fastboot: fix the serial number display error Incorrect usb string package size assign. Signed-off-by: Xinyu Chen --- drivers/fastboot/fastboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fastboot/fastboot.c b/drivers/fastboot/fastboot.c index e775fab..96dd408 100644 --- a/drivers/fastboot/fastboot.c +++ b/drivers/fastboot/fastboot.c @@ -410,7 +410,7 @@ static void fastboot_init_strings(void) fastboot_string_table[STR_PRODUCT_INDEX] = string; string = (struct usb_string_descriptor *)wstrSerial; - string->bLength = strlen(CONFIG_FASTBOOT_SERIAL_NUM); + string->bLength = sizeof(wstrSerial); string->bDescriptorType = USB_DT_STRING; str2wide(CONFIG_FASTBOOT_SERIAL_NUM, string->wData); fastboot_string_table[STR_SERIAL_INDEX] = string; -- cgit v1.1