summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Matthew <jmatthew@cvs.openbsd.org>2020-06-16 09:41:22 +0000
committerJonathan Matthew <jmatthew@cvs.openbsd.org>2020-06-16 09:41:22 +0000
commit9fb626cf633650a6fbc527e67d757febc4c96335 (patch)
tree6b125ef659f77fd0c5ef2300b635d2aa10b470f1
parentaa7c47fd382ed850ec4c52e78864b158e34f1fd6 (diff)
Release the rx node if we were unable to allocate a new rx buffer.
The node here is always ic_bss, for which the reference count isn't actually used (it's always freed when the interface detaches), so not releasing it in this case wasn't really a problem. ok stsp@
-rw-r--r--sys/dev/usb/if_atu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_atu.c b/sys/dev/usb/if_atu.c
index dc1d8d3845c..fee9f0d2ad3 100644
--- a/sys/dev/usb/if_atu.c
+++ b/sys/dev/usb/if_atu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_atu.c,v 1.128 2020/01/05 08:58:25 jsg Exp $ */
+/* $OpenBSD: if_atu.c,v 1.129 2020/06/16 09:41:21 jmatthew Exp $ */
/*
* Copyright (c) 2003, 2004
* Daan Vreeken <Danovitsch@Vitsch.net>. All rights reserved.
@@ -1742,8 +1742,8 @@ atu_rxeof(struct usbd_xfer *xfer, void *priv, usbd_status status)
rxi.rxi_tstamp = UGETDW(h->rx_time);
ieee80211_input(ifp, m, ni, &rxi);
- ieee80211_release_node(ic, ni);
done1:
+ ieee80211_release_node(ic, ni);
splx(s);
done:
/* Setup new transfer. */