usb: gadget: m66592-udc: forever loop in set_feature()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 29 Jul 2015 21:30:58 +0000 (00:30 +0300)
committerFelipe Balbi <balbi@ti.com>
Thu, 30 Jul 2015 16:43:37 +0000 (11:43 -0500)
commit5feb5d2003499b1094d898c010a7604d7afddc4c
tree2df8b717e10b72446186c1471dc84011e636a2fc
parent1c99cabfc95d3b08fbf06d558ebfa76b5303710c
usb: gadget: m66592-udc: forever loop in set_feature()

There is an "&&" vs "||" typo here so this loops 3000 times or if we get
unlucky it could loop forever.

Fixes: ceaa0a6eeadf ('usb: gadget: m66592-udc: add support for TEST_MODE')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/m66592-udc.c