summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_run.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2010-10-30 11:47:54 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2010-10-30 11:47:54 +0000
commit484193b23a152d1fb0ffdf75ce6a5f23ef63491f (patch)
tree3a9a703d09233e64f312ce92f15d74b2be4b47bf /sys/dev/usb/if_run.c
parent219c3281bfa12bbde54d95ea960dcf831104817d (diff)
don't release the node twice if tx() fails
Diffstat (limited to 'sys/dev/usb/if_run.c')
-rw-r--r--sys/dev/usb/if_run.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/if_run.c b/sys/dev/usb/if_run.c
index 454fce8e919..5f650bd6bf6 100644
--- a/sys/dev/usb/if_run.c
+++ b/sys/dev/usb/if_run.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_run.c,v 1.76 2010/10/30 11:46:47 damien Exp $ */
+/* $OpenBSD: if_run.c,v 1.77 2010/10/30 11:47:53 damien Exp $ */
/*-
* Copyright (c) 2008-2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -2250,7 +2250,6 @@ sendit:
bpf_mtap(ic->ic_rawbpf, m, BPF_DIRECTION_OUT);
#endif
if (run_tx(sc, m, ni) != 0) {
- ieee80211_release_node(ic, ni);
ifp->if_oerrors++;
continue;
}