g_dnl: Properly terminate string list.
authorPantelis Antoniou <panto@antoniou-consulting.com>
Fri, 30 Nov 2012 08:01:06 +0000 (08:01 +0000)
committerMarek 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

index 25da73363ad5500037df0816d271b39f3312572c..a5a4c1fe65f3cd0b79a008c0f3ed86a1a1548622 100644 (file)
@@ -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 = {