Files
android_kernel_xiaomi_sm8450/include/linux/usb
Alan Stern 7e8b3dfef1 USB: EHCI: declare hostpc register as zero-length array
The HOSTPC extension registers found in some EHCI implementations form
a variable-length array, with one element for each port.  Therefore
the hostpc field in struct ehci_regs should be declared as a
zero-length array, not a single-element array.

This fixes a problem reported by UBSAN.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Wilfried Klaebe <linux-kernel@lebenslange-mailadresse.de>
Tested-by: Wilfried Klaebe <linux-kernel@lebenslange-mailadresse.de>
CC: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-06-24 17:03:12 -07:00
..
2015-09-15 21:53:24 -07:00
2010-05-20 13:21:35 -07:00
2008-07-21 15:16:27 -07:00
2009-09-23 06:46:30 -07:00
2015-09-27 10:54:31 -05:00
2014-03-04 15:38:11 -08:00
2015-05-13 12:04:55 -05:00