summaryrefslogtreecommitdiffstats
path: root/drivers/dfu
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2013-07-19 13:12:08 -0700
committerMarek Vasut <marex@denx.de>2013-08-26 21:56:34 +0200
commiteaf3e613ea6f0dc95c94a93997ad62785fe2969c (patch)
tree37cad21b6993b25dc9b82245cc84ec4db0780713 /drivers/dfu
parent1572eadfbc8e0ec7e6a4b80034eb4c30abe96739 (diff)
downloadtalos-obmc-uboot-eaf3e613ea6f0dc95c94a93997ad62785fe2969c.tar.gz
talos-obmc-uboot-eaf3e613ea6f0dc95c94a93997ad62785fe2969c.zip
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 'drivers/dfu')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud