Date: Fri, 5 Aug 2016 16:32:10 +0000 (UTC) From: Luiz Otavio O Souza <loos@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r303772 - stable/11/sys/arm/ti/am335x Message-ID: <201608051632.u75GWAmk043735@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: loos Date: Fri Aug 5 16:32:09 2016 New Revision: 303772 URL: https://svnweb.freebsd.org/changeset/base/303772 Log: MFC r302988: 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) Approved by: re (gjb) Modified: stable/11/sys/arm/ti/am335x/am335x_pwmss.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/arm/ti/am335x/am335x_pwmss.c ============================================================================== --- stable/11/sys/arm/ti/am335x/am335x_pwmss.c Fri Aug 5 15:48:56 2016 (r303771) +++ stable/11/sys/arm/ti/am335x/am335x_pwmss.c Fri Aug 5 16:32:09 2016 (r303772) @@ -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; };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608051632.u75GWAmk043735>