diff options
author | zbb <zbb@FreeBSD.org> | 2015-11-17 12:50:45 +0000 |
---|---|---|
committer | zbb <zbb@FreeBSD.org> | 2015-11-17 12:50:45 +0000 |
commit | 6e1426b13af798f0678ab25d96667e4160e9a7cb (patch) | |
tree | 2b2efd5ca4a8d888e32b6407d04a966f74ea314c /sys/arm/samsung | |
parent | ad0f90cbe0c6c052ea18a7519cba1f0c26b6d29c (diff) | |
download | FreeBSD-src-6e1426b13af798f0678ab25d96667e4160e9a7cb.zip FreeBSD-src-6e1426b13af798f0678ab25d96667e4160e9a7cb.tar.gz |
Fix buffer overflow in exynos5_ehci
Use proper size of exynos_ehci_softc, not the generic one.
Reviewed by: andrew
Submitted by: Wojciech Macek <wma@semihalf.com>
Obtained from: Semihalf
Sponsored by: Juniper Networks Inc.
Differential Revision: https://reviews.freebsd.org/D4189
Diffstat (limited to 'sys/arm/samsung')
-rw-r--r-- | sys/arm/samsung/exynos/exynos5_ehci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/samsung/exynos/exynos5_ehci.c b/sys/arm/samsung/exynos/exynos5_ehci.c index 9234a64..6683937 100644 --- a/sys/arm/samsung/exynos/exynos5_ehci.c +++ b/sys/arm/samsung/exynos/exynos5_ehci.c @@ -122,7 +122,7 @@ static device_method_t ehci_methods[] = { static driver_t ehci_driver = { "ehci", ehci_methods, - sizeof(ehci_softc_t) + sizeof(struct exynos_ehci_softc) }; static devclass_t ehci_devclass; |