summaryrefslogtreecommitdiff
path: root/board/bf537-pnav
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-02-29 15:25:53 -0700
committerSimon Glass <sjg@chromium.org>2016-03-14 15:34:50 -0600
commitc89e79d4199cf76f3a018c230d5705df7d2225c6 (patch)
treecd6e441f0681c25438862635e4bfb0408427cee2 /board/bf537-pnav
parent2a981dc2c62c500110aad297fa70503aec36e689 (diff)
downloadu-boot-imx-c89e79d4199cf76f3a018c230d5705df7d2225c6.zip
u-boot-imx-c89e79d4199cf76f3a018c230d5705df7d2225c6.tar.gz
u-boot-imx-c89e79d4199cf76f3a018c230d5705df7d2225c6.tar.bz2
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>
Diffstat (limited to 'board/bf537-pnav')
0 files changed, 0 insertions, 0 deletions