diff options
| author | Alan Stern <stern@rowland.harvard.edu> | 2016-06-23 14:54:37 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-24 17:03:12 -0700 |
| commit | 7e8b3dfef16375dbfeb1f36a83eb9f27117c51fd (patch) | |
| tree | e056432b1d7d3ce0301ae4e1b0f7b975af9d98d5 /tools/perf/scripts/python | |
| parent | Merge tag 'phy-for-4.7-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff) | |
| download | linux-7e8b3dfef16375dbfeb1f36a83eb9f27117c51fd.tar.gz linux-7e8b3dfef16375dbfeb1f36a83eb9f27117c51fd.zip | |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
