Skip to content
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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment