Add missing splx before returning when urtwn_ccmp_decap() fails.
authorjmatthew <jmatthew@openbsd.org>
Sun, 26 Jun 2022 15:38:11 +0000 (15:38 +0000)
committerjmatthew <jmatthew@openbsd.org>
Sun, 26 Jun 2022 15:38:11 +0000 (15:38 +0000)
from Christian Ludwig

sys/dev/usb/if_urtwn.c

index 6454f82..a195c10 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_urtwn.c,v 1.100 2022/04/21 21:03:03 stsp Exp $     */
+/*     $OpenBSD: if_urtwn.c,v 1.101 2022/06/26 15:38:11 jmatthew Exp $ */
 
 /*-
  * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -1280,6 +1280,7 @@ urtwn_rx_frame(struct urtwn_softc *sc, uint8_t *buf, int pktlen,
                        ifp->if_ierrors++;
                        m_freem(m);
                        ieee80211_release_node(ic, ni);
+                       splx(s);
                        return;
                }
                rxi.rxi_flags |= IEEE80211_RXI_HWDEC;