Re: [PATCH AUTOSEL 3.18 15/98] usb: musb: Fix a few off-by-one lengths

2018-10-26 Thread Rasmus Villemoes
On 2018-10-25 16:17, Sasha Levin wrote: > From: Rasmus Villemoes > > [ Upstream commit e87c3f80ad0490d26ffe04754b7d094463b40f30 ] > > !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

Re: [PATCH AUTOSEL 3.18 15/98] usb: musb: Fix a few off-by-one lengths

2018-10-26 Thread Rasmus Villemoes
On 2018-10-25 16:17, Sasha Levin wrote: > From: Rasmus Villemoes > > [ Upstream commit e87c3f80ad0490d26ffe04754b7d094463b40f30 ] > > !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

[PATCH AUTOSEL 3.18 15/98] usb: musb: Fix a few off-by-one lengths

2018-10-25 Thread Sasha Levin
From: Rasmus Villemoes [ Upstream commit e87c3f80ad0490d26ffe04754b7d094463b40f30 ] !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".

[PATCH AUTOSEL 3.18 15/98] usb: musb: Fix a few off-by-one lengths

2018-10-25 Thread Sasha Levin
From: Rasmus Villemoes [ Upstream commit e87c3f80ad0490d26ffe04754b7d094463b40f30 ] !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".