From: Pantelis Antoniou Date: Fri, 30 Nov 2012 08:01:06 +0000 (+0000) Subject: g_dnl: Properly terminate string list. X-Git-Tag: v2013.01-rc3~14^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=598cf6062e0841ab10104ac7b64c9640284cec64;p=oweals%2Fu-boot.git 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 --- diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c index 25da73363a..a5a4c1fe65 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 = {