summaryrefslogtreecommitdiffstats
path: root/init/init_task.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2014-11-27 22:25:45 +0100
committerFelipe Balbi <balbi@ti.com>2014-12-22 17:25:37 +0100
commite87c3f80ad0490d26ffe04754b7d094463b40f30 (patch)
treedd12c2eb2b2439a5bbcfae0188e6f3c1429e9d02 /init/init_task.c
parentusb: musb: blackfin: fix build break (diff)
downloadlinux-e87c3f80ad0490d26ffe04754b7d094463b40f30.tar.xz
linux-e87c3f80ad0490d26ffe04754b7d094463b40f30.zip
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>
Diffstat (limited to 'init/init_task.c')
0 files changed, 0 insertions, 0 deletions