commit | 6d74d7c4ece2af0ceb22df1d2cc9a72600762097 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Feb 29 15:25:53 2016 -0700 |
committer | Simon Glass <sjg@chromium.org> | Mon Mar 14 15:34:50 2016 -0600 |
tree | cd6e441f0681c25438862635e4bfb0408427cee2 | |
parent | 2ee8adaf9732cbd2ac2d07c509b8b20a8ac37de6 [diff] |
dm: usb: Avoid exceeding available array size for storage devices The limit on storage devices is USB_MAX_STOR_DEV but we use one extra element while probing to see if a device is a storage device. Avoid this, since it causes memory corruption. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de> Tested-by: Stephen Warren <swarren@nvidia.com>