[U-Boot] [PATCH v2 20/32] dm: usb: Avoid exceeding available array size for storage devices
Simon Glass
sjg at chromium.org
Sun Mar 13 02:53:13 CET 2016
On 29 February 2016 at 15:25, Simon Glass <sjg at chromium.org> wrote:
> 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 at chromium.org>
> ---
>
> Changes in v2: None
>
> common/usb_storage.c | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
Applied to u-boot-dm/next.
More information about the U-Boot
mailing list