Author: loos
Date: Mon Jul 18 06:35:40 2016
New Revision: 302988
URL: https://svnweb.freebsd.org/changeset/base/302988

Log:
  Fix a random memory overwrite at boot time, simplebus_init() and
  simplebus_add_device() expect a simplebus_softc structure associated with
  the device.
  
  Add the simplebus_softc as first member in am335x_pwmss_softc structure.
  
  Sponsored by: Rubicon Communications (Netgate)

Modified:
  head/sys/arm/ti/am335x/am335x_pwmss.c

Modified: head/sys/arm/ti/am335x/am335x_pwmss.c
==============================================================================
--- head/sys/arm/ti/am335x/am335x_pwmss.c       Mon Jul 18 06:09:52 2016        
(r302987)
+++ head/sys/arm/ti/am335x/am335x_pwmss.c       Mon Jul 18 06:35:40 2016        
(r302988)
@@ -65,6 +65,7 @@ static device_attach_t am335x_pwmss_atta
 static device_detach_t am335x_pwmss_detach;
 
 struct am335x_pwmss_softc {
+       struct simplebus_softc  sc_simplebus;
        device_t                sc_dev;
        clk_ident_t             sc_clk;
 };
_______________________________________________
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