diff options
author | Nikhil Badola <nikhil.badola@freescale.com> | 2015-05-11 11:51:27 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-09-25 07:25:27 (GMT) |
commit | e514f6045d74feee1a0dadc0ffc70a920bc169ac (patch) | |
tree | bb586287fab787d5cf13e5955e20f3d4e146839a /drivers | |
parent | 910d786761e3bdaac232a75d5ae6ac10cc6c86a5 (diff) | |
download | linux-e514f6045d74feee1a0dadc0ffc70a920bc169ac.tar.xz |
usb: fsl: Correct endpoint name checking
Endpoint name being statically defined cannot be NULL
hence checking name's first two character with "ep" for
endpoint validity
Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/udc/fsl_udc_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c index 0d207e6..b0d0822 100644 --- a/drivers/usb/gadget/udc/fsl_udc_core.c +++ b/drivers/usb/gadget/udc/fsl_udc_core.c @@ -1705,7 +1705,7 @@ static void dtd_complete_irq(struct fsl_udc *udc) curr_ep = get_ep_by_pipe(udc, i); /* If the ep is configured */ - if (curr_ep->name == NULL) { + if (strncmp(curr_ep->name, "ep", 2)) { WARNING("Invalid EP?"); continue; } |