projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a413ca
)
g_dnl: Properly terminate string list.
author
Pantelis Antoniou
<panto@antoniou-consulting.com>
Fri, 30 Nov 2012 08:01:06 +0000
(08:01 +0000)
committer
Marek Vasut
<marex@denx.de>
Mon, 17 Dec 2012 14:38:15 +0000
(15:38 +0100)
Well, not terminating the list causes very interesting crashes.
As in changing the vendor & product ID crashes. Fun.
Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
drivers/usb/gadget/g_dnl.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/g_dnl.c
b/drivers/usb/gadget/g_dnl.c
index 25da73363ad5500037df0816d271b39f3312572c..a5a4c1fe65f3cd0b79a008c0f3ed86a1a1548622 100644
(file)
--- a/
drivers/usb/gadget/g_dnl.c
+++ b/
drivers/usb/gadget/g_dnl.c
@@
-69,6
+69,7
@@
static struct usb_device_descriptor device_desc = {
static struct usb_string g_dnl_string_defs[] = {
{ 0, manufacturer, },
{ 1, product, },
+ { } /* end of list */
};
static struct usb_gadget_strings g_dnl_string_tab = {