mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
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 <[email protected]> Reported-by: Wilfried Klaebe <[email protected]> Tested-by: Wilfried Klaebe <[email protected]> CC: <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>