summaryrefslogtreecommitdiff
path: root/drivers/fastboot/fastboot.c
diff options
context:
space:
mode:
authorXinyu Chen <xinyu.chen@freescale.com>2011-10-25 16:22:07 +0800
committerXinyu Chen <xinyu.chen@freescale.com>2011-10-25 16:22:07 +0800
commit12603b0bd079c70acd8bf029675b8819184cc240 (patch)
tree26bddcb8710d5950d555fd34d9b2254adbef205e /drivers/fastboot/fastboot.c
parent95dfb041f995bea503bd74ee63e8e412ccef53ed (diff)
downloadu-boot-imx-12603b0bd079c70acd8bf029675b8819184cc240.zip
u-boot-imx-12603b0bd079c70acd8bf029675b8819184cc240.tar.gz
u-boot-imx-12603b0bd079c70acd8bf029675b8819184cc240.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/fastboot/fastboot.c')
-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 a922b30..dd5205d 100644
--- a/drivers/fastboot/fastboot.c
+++ b/drivers/fastboot/fastboot.c
@@ -408,7 +408,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;