summaryrefslogtreecommitdiffstats
path: root/sys/arm/samsung
diff options
context:
space:
mode:
authorzbb <zbb@FreeBSD.org>2015-11-17 12:50:45 +0000
committerzbb <zbb@FreeBSD.org>2015-11-17 12:50:45 +0000
commit6e1426b13af798f0678ab25d96667e4160e9a7cb (patch)
tree2b2efd5ca4a8d888e32b6407d04a966f74ea314c /sys/arm/samsung
parentad0f90cbe0c6c052ea18a7519cba1f0c26b6d29c (diff)
downloadFreeBSD-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.c2
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;
OpenPOWER on IntegriCloud