diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2000-08-28 22:03:02 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2000-08-28 22:03:02 +0000 |
commit | 768e1ea8910e3fcfb0cd8e9be68a3eb1bf0d1efa (patch) | |
tree | d42ad37c4115e28adbb36467230a899cb41513e3 | |
parent | bbbc781195513956d6179239bb9e39578362b29e (diff) |
Allocate memory for the correct size, not some forgotten constant
-rw-r--r-- | sys/arch/sun3/dev/if_le.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sun3/dev/if_le.c b/sys/arch/sun3/dev/if_le.c index 7d6ec439e73..db30b8b027d 100644 --- a/sys/arch/sun3/dev/if_le.c +++ b/sys/arch/sun3/dev/if_le.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_le.c,v 1.11 1998/09/16 22:41:19 jason Exp $ */ +/* $OpenBSD: if_le.c,v 1.12 2000/08/28 22:03:01 miod Exp $ */ /* $NetBSD: if_le.c,v 1.33 1996/11/20 18:56:52 gwr Exp $ */ /*- @@ -145,7 +145,7 @@ le_attach(parent, self, aux) struct confargs *ca = aux; lesc->sc_r1 = (struct lereg1 *) - obio_alloc(ca->ca_paddr, OBIO_AMD_ETHER_SIZE); + obio_alloc(ca->ca_paddr, sizeof(struct lereg1)); sc->sc_memsize = 0x4000; /* 16K */ sc->sc_mem = dvma_malloc(sc->sc_memsize); |