]> Git Repo - u-boot.git/commit
dm: usb: Avoid exceeding available array size for storage devices
authorSimon Glass <[email protected]>
Mon, 29 Feb 2016 22:25:53 +0000 (15:25 -0700)
committerSimon Glass <[email protected]>
Mon, 14 Mar 2016 21:34:50 +0000 (15:34 -0600)
commitc89e79d4199cf76f3a018c230d5705df7d2225c6
treecd6e441f0681c25438862635e4bfb0408427cee2
parent2a981dc2c62c500110aad297fa70503aec36e689
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 <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Tested-by: Stephen Warren <[email protected]>
common/usb_storage.c
This page took 0.033239 seconds and 4 git commands to generate.