diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-02-22 11:22:37 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2017-02-26 13:24:30 +0100 |
commit | 949bf79e73a12961cf1310baf411647083f34b34 (patch) | |
tree | e966b3f986cb8ec2007444a40b310ffb7d245ab7 /drivers/block | |
parent | 00e9d69629eb026a2ccc9e2526e365b1e796a14d (diff) | |
download | u-boot-imx-949bf79e73a12961cf1310baf411647083f34b34.zip u-boot-imx-949bf79e73a12961cf1310baf411647083f34b34.tar.gz u-boot-imx-949bf79e73a12961cf1310baf411647083f34b34.tar.bz2 |
usb: gadget: g_dnl: fix g_dnl_set_serialnumber()
instead of only copying if strlen(s) is less than 32 characters, let's
just copy at most 31 characters regardless of the size of
serial#. This will guarantee that we always have a serial number if
serial# environment variable is set to anything.
Note that without a proper serial number, USB Command Verifier fails
our test of Device Descriptor since we will claim to have a serial
number without really providing one when requested.
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions