summaryrefslogtreecommitdiff
path: root/include/configs/mx7_common.h
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2016-01-12 13:50:51 +0800
committerguoyin.chen <guoyin.chen@freescale.com>2016-03-04 15:35:55 +0800
commit4f476f523b275aeb3a9de1ef454d973eaff4d87f (patch)
tree0941d2a8d48c234c4347ca86f71f5789e33ee838 /include/configs/mx7_common.h
parentd72087c428ee44dcfe527d4eff4270ad51a8f917 (diff)
downloadu-boot-imx-4f476f523b275aeb3a9de1ef454d973eaff4d87f.zip
u-boot-imx-4f476f523b275aeb3a9de1ef454d973eaff4d87f.tar.gz
u-boot-imx-4f476f523b275aeb3a9de1ef454d973eaff4d87f.tar.bz2
MLK-12206 common: usb: fix check condition
We support max 16 endpoints, but endpoint starts from 0. So we need to use >= 16 but not > 16 to check whether we already reach max endpoints or not. Coverity ID 17955: Out-of-bounds read (OVERRUN) 37. overrun-local: Overrunning array dev->config.if_desc[ifno].ep_desc of 16 9-byte elements at element index 16 (byte offset 144) using index epno (which evaluates to 16). Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include/configs/mx7_common.h')
0 files changed, 0 insertions, 0 deletions