linux-stable/drivers/usb/musb
Rasmus Villemoes e87c3f80ad usb: musb: Fix a few off-by-one lengths
!strncmp(buf, "force host", 9) is true if and only if buf starts with
"force hos". This was obviously not what was intended. The same error
exists for "force full-speed", "force high-speed" and "test
packet". Using strstarts avoids the error-prone hardcoding of the
prefix length.

For consistency, also change the other occurences of the !strncmp
idiom.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2014-12-22 10:25:37 -06:00
..
am35x.c usb: musb: Change end point selection to use new IO access 2014-11-25 08:47:06 -06:00
blackfin.c usb: musb: blackfin: fix build break 2014-12-22 10:24:10 -06:00
blackfin.h
cppi_dma.c usb: musb: dma: merge ->start/stop into create/destroy 2013-07-29 13:53:18 +03:00
cppi_dma.h
da8xx.c usb: musb: Pass fifo_mode in platform data 2014-11-25 08:47:07 -06:00
davinci.c usb: move the OTG state from the USB PHY to the OTG structure 2014-11-03 10:01:25 -06:00
davinci.h
jz4740.c usb: musb: Pass fifo_mode in platform data 2014-11-25 08:47:07 -06:00
Kconfig usb: musb: Allow multiple glue layers to be built in 2014-11-25 08:47:07 -06:00
Makefile usb: musb: add support for JZ4740 usb device controller 2013-12-20 09:53:24 -06:00
musb_am335x.c usb: musb: Fix panic upon musb_am335x module removal 2014-06-27 10:53:06 -05:00
musb_core.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
musb_core.h usb: musb: Use IS_ENABLED for tusb6010 2014-11-25 08:47:07 -06:00
musb_cppi41.c usb: musb: Fix a few off-by-one lengths 2014-12-22 10:25:37 -06:00
musb_debug.h
musb_debugfs.c usb: musb: Fix a few off-by-one lengths 2014-12-22 10:25:37 -06:00
musb_dma.h usb: musb: introduce dma_channel.rx_packet_done 2014-06-30 14:26:24 -05:00
musb_dsps.c usb: musb: Change end point selection to use new IO access 2014-11-25 08:47:06 -06:00
musb_gadget.c usb: musb: gadget: use udc-core's reset notifier 2014-11-10 17:19:34 -06:00
musb_gadget.h
musb_gadget_ep0.c
musb_host.c usb: move the OTG state from the USB PHY to the OTG structure 2014-11-03 10:01:25 -06:00
musb_host.h usb: musb: fix prototype for musb_port_reset 2013-12-20 15:05:43 -06:00
musb_io.h usb: musb: Change end point selection to use new IO access 2014-11-25 08:47:06 -06:00
musb_regs.h usb: musb: Use IS_ENABLED for tusb6010 2014-11-25 08:47:07 -06:00
musb_virthub.c usb: musb: try a race-free wakeup 2014-11-05 13:26:41 -06:00
musbhsdma.c usb: musb: Change end point selection to use new IO access 2014-11-25 08:47:06 -06:00
musbhsdma.h
omap2430.c usb: move the OTG state from the USB PHY to the OTG structure 2014-11-03 10:01:25 -06:00
omap2430.h
tusb6010.c usb: musb: Change end point selection to use new IO access 2014-11-25 08:47:06 -06:00
tusb6010.h usb: musb: tusb6010: Use musb->tusb_revision instead of tusb_get_revision call. 2014-05-16 12:16:31 -05:00
tusb6010_omap.c usb: musb: tusb6010: Use musb->tusb_revision instead of tusb_get_revision call. 2014-05-16 12:16:31 -05:00
ux500.c usb: musb: Pass fifo_mode in platform data 2014-11-25 08:47:07 -06:00
ux500_dma.c usb: musb: Change to use new IO access 2014-11-25 08:47:06 -06:00