diff options
author | Julius Werner <jwerner@chromium.org> | 2013-07-19 13:12:08 -0700 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-08-26 21:56:34 +0200 |
commit | eaf3e613ea6f0dc95c94a93997ad62785fe2969c (patch) | |
tree | 37cad21b6993b25dc9b82245cc84ec4db0780713 /include/part_efi.h | |
parent | 1572eadfbc8e0ec7e6a4b80034eb4c30abe96739 (diff) | |
download | u-boot-imx-eaf3e613ea6f0dc95c94a93997ad62785fe2969c.zip u-boot-imx-eaf3e613ea6f0dc95c94a93997ad62785fe2969c.tar.gz u-boot-imx-eaf3e613ea6f0dc95c94a93997ad62785fe2969c.tar.bz2 |
usb: Use well-known descriptor sizes when parsing configuration
The existing USB configuration parsing code relies on the descriptors'
own length values when reading through the configuration blob. Since the
size of those descriptors is always well-defined, we should rather use
the known sizes instead of trusting device-provided values to be
correct. Also adds some safety to potential out-of-order descriptors.
Change-Id: I16f69dfdd6793aa0fe930b5148d4521f3e5c3090
Signed-off-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'include/part_efi.h')
0 files changed, 0 insertions, 0 deletions