diff options
author | Peng Fan <peng.fan@nxp.com> | 2016-01-12 07:57:01 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2016-01-16 06:06:55 (GMT) |
commit | 447b9cdf2c4d8d7c6cb1ff64426c1dfaf7396f93 (patch) | |
tree | ebd5fba4a4c40637f72a18cfab100a1d259566b3 /include/vsprintf.h | |
parent | 08c11cb5df8c75c79b165e19531040cc36036252 (diff) | |
download | u-boot-fsl-qoriq-447b9cdf2c4d8d7c6cb1ff64426c1dfaf7396f93.tar.xz |
common: usb: fix checking condition
We support max USB_MAXENDPOINTS, so need to use
"epno >= USB_MAXENDPOINTS", but not "epno > USB_MAXENDPOINTS".
If use ">", we may exceeds the array of if_desc->ep_desc.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Paul Kocialkowski <contact@paulk.fr>
Cc: "Stefan BrĂ¼ns" <stefan.bruens@rwth-aachen.de>
Cc: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/vsprintf.h')
0 files changed, 0 insertions, 0 deletions