summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorXinyu Chen <xinyu.chen@freescale.com>2011-10-25 16:22:07 +0800
committerZhang Jiejing <jiejing.zhang@freescale.com>2011-12-16 13:06:13 +0800
commit9eb908663a9a4a69adb6e3590079e856ddede765 (patch)
tree6708e9bde9b1ca2f91f7b2d1102ba0b1fd57c7bb /drivers
parent5e19381b724e649e316f3e1764c9e640e3f63761 (diff)
downloadu-boot-imx-9eb908663a9a4a69adb6e3590079e856ddede765.zip
u-boot-imx-9eb908663a9a4a69adb6e3590079e856ddede765.tar.gz
u-boot-imx-9eb908663a9a4a69adb6e3590079e856ddede765.tar.bz2
ENGR00160725 fastboot: fix the serial number display error
Incorrect usb string package size assign. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/fastboot/fastboot.c2
1 files changed, 1 insertions, 1 deletions
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;