Skip to content
Snippets Groups Projects
Commit 12d0b8f5 authored by Felipe Balbi's avatar Felipe Balbi Committed by Marek Vasut
Browse files

usb: gadget: g_dnl: hold maximum string descriptor


A USB String descriptor can be up to 255 characters long and it's not
NULL terminated according to the USB spec. This means our
MAX_STRING_SERIAL should be 256 (to cope with NULL terminator).

Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 5c735367
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@
#define STRING_USBDOWN 2
/* Index of String serial */
#define STRING_SERIAL 3
#define MAX_STRING_SERIAL 32
#define MAX_STRING_SERIAL 256
/* Number of supported configurations */
#define CONFIGURATION_NUMBER 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment