Author: zbb
Date: Tue Nov 17 12:50:45 2015
New Revision: 290977
URL: https://svnweb.freebsd.org/changeset/base/290977

Log:
  Fix buffer overflow in exynos5_ehci
  
  Use proper size of exynos_ehci_softc, not the generic one.
  
  Reviewed by:   andrew
  Submitted by:  Wojciech Macek <w...@semihalf.com>
  Obtained from: Semihalf
  Sponsored by:  Juniper Networks Inc.
  Differential Revision: https://reviews.freebsd.org/D4189

Modified:
  head/sys/arm/samsung/exynos/exynos5_ehci.c

Modified: head/sys/arm/samsung/exynos/exynos5_ehci.c
==============================================================================
--- head/sys/arm/samsung/exynos/exynos5_ehci.c  Tue Nov 17 12:18:57 2015        
(r290976)
+++ head/sys/arm/samsung/exynos/exynos5_ehci.c  Tue Nov 17 12:50:45 2015        
(r290977)
@@ -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;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to