Skip to content
Snippets Groups Projects
Commit c89e79d4 authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarMarek Vasut <marex@denx.de>
Tested-by: default avatarStephen Warren <swarren@nvidia.com>
parent 2a981dc2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment