diff options
author | Pantelis Antoniou <panto@antoniou-consulting.com> | 2012-11-30 08:01:06 +0000 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2012-12-17 15:38:15 +0100 |
commit | 598cf6062e0841ab10104ac7b64c9640284cec64 (patch) | |
tree | ba9061f61ce9150d26ab0b446e85cd7aef4d90dc | |
parent | 5a413cae6a2201e0aee4741ab9e793317084707e (diff) | |
download | u-boot-imx-598cf6062e0841ab10104ac7b64c9640284cec64.zip u-boot-imx-598cf6062e0841ab10104ac7b64c9640284cec64.tar.gz u-boot-imx-598cf6062e0841ab10104ac7b64c9640284cec64.tar.bz2 |
g_dnl: Properly terminate string list.
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>
-rw-r--r-- | drivers/usb/gadget/g_dnl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c index 25da733..a5a4c1f 100644 --- 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 = { |