]> git.baikalelectronics.ru Git - uboot.git/commit
usb: gadget: g_dnl: hold maximum string descriptor
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 22 Feb 2017 15:12:39 +0000 (17:12 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 14 Apr 2017 14:44:16 +0000 (16:44 +0200)
commit07af9afc7d0a52596d32ffd50fabbb8296184247
treecec0448effa0dcc4b741e8bcd00eccb06bdfb40f
parent81ee0e2fed62385d7ffff31e5b6c5aad5355f6ab
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: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/g_dnl.c