commit | 6e76b0f725eae6964815f677bc21cb4d693233de | [log] [tgz] |
---|---|---|
author | Marek Vasut <marex@denx.de> | Sat Nov 26 13:57:53 2022 +0100 |
committer | Marek Vasut <marex@denx.de> | Sun Nov 27 12:04:36 2022 +0100 |
tree | fad6e70fb1c7891af9911540f36c6811d52c29ba | |
parent | d6f3163c2e6313cca052e06954fd72f2937c8dee [diff] |
usb: Expand buffer size in usb_find_and_bind_driver() The "generic_bus_%x_dev_%x" string which is printed into this buffer can be up to 34 characters long ("generic_bus_12345678_dev_12345678"). The buffer would be clipped by snprintf() if both %x were at maximum range. Make sure the buffer is long enough to cover such possibility. Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>