summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2016-06-23 14:54:37 -0400
committerSasha Levin <sasha.levin@oracle.com>2016-07-12 08:47:09 -0400
commit4c2b0216cdf54e81f7c0e841b5bb1116701ae25b (patch)
tree7857c81e19d9aa9d2e17f064156fecb10079f2a1 /mm
parent1f5d0686569854939e2fa1afc12ae945e3d813be (diff)
downloadlinux-stable-4c2b0216cdf54e81f7c0e841b5bb1116701ae25b.tar.gz
linux-stable-4c2b0216cdf54e81f7c0e841b5bb1116701ae25b.tar.bz2
linux-stable-4c2b0216cdf54e81f7c0e841b5bb1116701ae25b.zip
USB: EHCI: declare hostpc register as zero-length array
[ Upstream commit 7e8b3dfef16375dbfeb1f36a83eb9f27117c51fd ] 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> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions