Re: [PATCH] - silence UBSAN complaint in ehci-hcd.

2016-05-20 Thread Alan Stern
On Thu, 19 May 2016, Valdis Kletnieks wrote: > UBSAN throws a complaint: > > [2.418579] UBSAN: Undefined behaviour in > drivers/usb/host/ehci-hub.c:877:47 > [2.418582] index -1 is out of range for type 'u32 [1]' > > though it's only on the hostpc[] part, not on the port_status[] on the

Re: [PATCH] - silence UBSAN complaint in ehci-hcd.

2016-05-20 Thread Alan Stern
On Thu, 19 May 2016 valdis.kletni...@vt.edu wrote: > On Thu, 19 May 2016 17:50:31 -0700, Greg Kroah-Hartman said: > > On Thu, May 19, 2016 at 05:19:00PM -0400, Valdis Kletnieks wrote: > > > UBSAN throws a complaint: > > > > > > [2.418579] UBSAN: Undefined behaviour in > > > drivers/usb/host/e

Re: [PATCH] - silence UBSAN complaint in ehci-hcd.

2016-05-19 Thread Valdis . Kletnieks
On Thu, 19 May 2016 17:50:31 -0700, Greg Kroah-Hartman said: > On Thu, May 19, 2016 at 05:19:00PM -0400, Valdis Kletnieks wrote: > > UBSAN throws a complaint: > > > > [2.418579] UBSAN: Undefined behaviour in > > drivers/usb/host/ehci-hub.c:877:47 > > [2.418582] index -1 is out of range for

Re: [PATCH] - silence UBSAN complaint in ehci-hcd.

2016-05-19 Thread Greg Kroah-Hartman
On Thu, May 19, 2016 at 05:19:00PM -0400, Valdis Kletnieks wrote: > UBSAN throws a complaint: > > [2.418579] UBSAN: Undefined behaviour in > drivers/usb/host/ehci-hub.c:877:47 > [2.418582] index -1 is out of range for type 'u32 [1]' > > though it's only on the hostpc[] part, not on the

[PATCH] - silence UBSAN complaint in ehci-hcd.

2016-05-19 Thread Valdis Kletnieks
UBSAN throws a complaint: [2.418579] UBSAN: Undefined behaviour in drivers/usb/host/ehci-hub.c:877:47 [2.418582] index -1 is out of range for type 'u32 [1]' though it's only on the hostpc[] part, not on the port_status[] on the previous line which has the same exact index calculation. T