diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-08-25 20:39:37 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-08-25 20:39:37 +0000 |
commit | 10abf0334a3cf7496084a71a6e9e82fed59c5414 (patch) | |
tree | 87b396301ade3e8f992d76aaa1a7cffd5c3acc74 /sys | |
parent | 9857f2781257eba0aaa95855bcc70ce9f008838c (diff) |
In bmac_init(), invoke bmac_transmit_packet() with the correct packet size
(sizeof(ptr) vs sizeof(*ptr) bug).
ok krw@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/macppc/dev/if_bm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/if_bm.c b/sys/arch/macppc/dev/if_bm.c index ad4cab124f1..cf78b01ff81 100644 --- a/sys/arch/macppc/dev/if_bm.c +++ b/sys/arch/macppc/dev/if_bm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bm.c,v 1.26 2009/01/11 16:54:59 blambert Exp $ */ +/* $OpenBSD: if_bm.c,v 1.27 2009/08/25 20:39:36 miod Exp $ */ /* $NetBSD: if_bm.c,v 1.1 1999/01/01 01:27:52 tsubai Exp $ */ /*- @@ -431,7 +431,7 @@ bmac_init(struct bmac_softc *sc) bzero(data, sizeof(*eh) + ETHERMIN); bcopy(sc->arpcom.ac_enaddr, eh->ether_dhost, ETHER_ADDR_LEN); bcopy(sc->arpcom.ac_enaddr, eh->ether_shost, ETHER_ADDR_LEN); - bmac_transmit_packet(sc, sc->sc_txbuf_pa, sizeof(eh) + ETHERMIN); + bmac_transmit_packet(sc, sc->sc_txbuf_pa, sizeof(*eh) + ETHERMIN); bmac_start(ifp); |