usb: gadget: fsl_qe_udc: off by one in setup_received_handle()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Jul 2016 10:14:33 +0000 (13:14 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 11 Aug 2016 12:09:47 +0000 (15:09 +0300)
commit7442e6db5bdd0dce4615205508301f9b22e502d6
tree1437037da620dc9f3fc067c1ae2877cc7e43ae20
parent327b21da884fe1a29f733e41792ddd53e4a30379
usb: gadget: fsl_qe_udc: off by one in setup_received_handle()

The udc->eps[] array has USB_MAX_ENDPOINTS elements so > should be >=.

Fixes: 3948f0e0c999 ('usb: add Freescale QE/CPM USB peripheral controller driver')
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/fsl_qe_udc.c