diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2007-09-16 11:52:41 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2007-09-16 11:52:41 +0000 |
commit | 7e6ccf4880b8920fc629ddfced80adb0c7c49f34 (patch) | |
tree | bb705a18e0454edf9c7fdcf09619331699d21384 | |
parent | 34fcf3a45bc6eb644d1cafa898792f0df7697885 (diff) |
Clear error before starting m_defrag() equivalent.
-rw-r--r-- | sys/dev/ic/bwi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c index 77d4fb6a0a0..af1815e9e0d 100644 --- a/sys/dev/ic/bwi.c +++ b/sys/dev/ic/bwi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwi.c,v 1.30 2007/09/16 11:30:53 jsg Exp $ */ +/* $OpenBSD: bwi.c,v 1.31 2007/09/16 11:52:40 jsg Exp $ */ /* * Copyright (c) 2007 The DragonFly Project. All rights reserved. @@ -8063,6 +8063,8 @@ bwi_encap(struct bwi_softc *sc, int idx, struct mbuf *m, if (error) { /* error == EFBIG */ struct mbuf *m_new; + error = 0; + MGETHDR(m_new, M_DONTWAIT, MT_DATA); if (m_new == NULL) { m_freem(m); |