summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMartin Reindl <martin@cvs.openbsd.org>2005-08-05 14:22:22 +0000
committerMartin Reindl <martin@cvs.openbsd.org>2005-08-05 14:22:22 +0000
commit6549eaaad41b10bea0a9d85b4eb966afaafee7c7 (patch)
treef64bda500a781ce32af1e018cd4576ccb332cfe9 /sys/arch
parentc1e397797b9d6b5b389d943570f7abb5b48dc38b (diff)
- missing m_free()
- drop unused define from NetBSD
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mac68k/dev/if_ae.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/mac68k/dev/if_ae.c b/sys/arch/mac68k/dev/if_ae.c
index 44f49213597..08ffe9dfe18 100644
--- a/sys/arch/mac68k/dev/if_ae.c
+++ b/sys/arch/mac68k/dev/if_ae.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ae.c,v 1.25 2005/01/15 05:24:09 brad Exp $ */
+/* $OpenBSD: if_ae.c,v 1.26 2005/08/05 14:22:21 martin Exp $ */
/* $NetBSD: if_ae.c,v 1.62 1997/04/24 16:52:05 scottr Exp $ */
/*
@@ -50,8 +50,6 @@
#include "if_aereg.h"
#include "if_aevar.h"
-#define INTERFACE_NAME_LEN 32
-
#define inline /* XXX for debugging porpoises */
static inline void ae_rint(struct ae_softc *);
@@ -62,7 +60,6 @@ static inline int ae_ring_copy( struct ae_softc *, int, caddr_t, int);
#define ETHER_MAX_LEN 1518
#define ETHER_ADDR_LEN 6
-
#define NIC_GET(sc, reg) (bus_space_read_1((sc)->sc_regt, \
(sc)->sc_regh, \
((sc)->sc_reg_map[reg])))
@@ -956,6 +953,7 @@ aeget(sc, src, total_len)
if (total_len >= MINCLSIZE) {
MCLGET(m, M_DONTWAIT);
if ((m->m_flags & M_EXT) == 0) {
+ m_free(m);
m_freem(top);
return 0;
}