diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2010-10-30 11:47:54 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2010-10-30 11:47:54 +0000 |
commit | 484193b23a152d1fb0ffdf75ce6a5f23ef63491f (patch) | |
tree | 3a9a703d09233e64f312ce92f15d74b2be4b47bf /sys/dev/usb | |
parent | 219c3281bfa12bbde54d95ea960dcf831104817d (diff) |
don't release the node twice if tx() fails
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_otus.c | 3 | ||||
-rw-r--r-- | sys/dev/usb/if_run.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/if_otus.c b/sys/dev/usb/if_otus.c index ad76cb23ad5..a1e1d82950b 100644 --- a/sys/dev/usb/if_otus.c +++ b/sys/dev/usb/if_otus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_otus.c,v 1.21 2010/10/30 11:46:47 damien Exp $ */ +/* $OpenBSD: if_otus.c,v 1.22 2010/10/30 11:47:53 damien Exp $ */ /*- * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr> @@ -1439,7 +1439,6 @@ sendit: bpf_mtap(ic->ic_rawbpf, m, BPF_DIRECTION_OUT); #endif if (otus_tx(sc, m, ni) != 0) { - ieee80211_release_node(ic, ni); ifp->if_oerrors++; continue; } 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; } |