diff options
author | bde <bde@FreeBSD.org> | 1999-04-17 09:56:35 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-04-17 09:56:35 +0000 |
commit | efa86a9261bef693f4822d42e4f0ac7ac3e712b0 (patch) | |
tree | 8f2ed544836b616f1f5d12fb91cfb54991b4e5cd /sys/i386/isa | |
parent | c5665d9c0edc0dd3471bf3db727505148bd6f8d8 (diff) | |
download | FreeBSD-src-efa86a9261bef693f4822d42e4f0ac7ac3e712b0.zip FreeBSD-src-efa86a9261bef693f4822d42e4f0ac7ac3e712b0.tar.gz |
Allocate space for struct isa_device's, not for pointers thereto.
This fixes memory corruption that caused calls to address 0 here.
Diffstat (limited to 'sys/i386/isa')
-rw-r--r-- | sys/i386/isa/isa_compat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/isa_compat.c b/sys/i386/isa/isa_compat.c index 82e6185..86ef5c5 100644 --- a/sys/i386/isa/isa_compat.c +++ b/sys/i386/isa/isa_compat.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: isa_compat.c,v 1.1 1999/04/16 21:22:23 peter Exp $ */ #include <sys/param.h> @@ -231,7 +231,7 @@ isa_wrap_old_drivers(void) driver->name = op->driver->name; driver->methods = isa_compat_methods; driver->type = op->type; - driver->softc = sizeof(struct isa_device *); + driver->softc = sizeof(struct isa_device); driver->priv = op->driver; devclass_add_driver(isa_devclass, driver); } |