-/* $OpenBSD: if_mos.c,v 1.29 2015/04/10 08:41:43 mpi Exp $ */
+/* $OpenBSD: if_mos.c,v 1.30 2015/05/02 10:44:29 jsg Exp $ */
/*
* Copyright (c) 2008 Johann Christian Rode <jcrode@gmx.net>
if (err) {
printf("%s: couldn't get MAC address\n",
sc->mos_dev.dv_xname);
+ splx(s);
return;
}
bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN);
-/* $OpenBSD: if_upgt.c,v 1.68 2015/04/13 08:45:48 mpi Exp $ */
+/* $OpenBSD: if_upgt.c,v 1.69 2015/05/02 10:44:29 jsg Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) {
k = ieee80211_get_txkey(ic, wh, ic->ic_bss);
- if ((m = ieee80211_encrypt(ic, m, k)) == NULL)
+ if ((m = ieee80211_encrypt(ic, m, k)) == NULL) {
+ splx(s);
return;
+ }
/* in case packet header moved, reset pointer */
wh = mtod(m, struct ieee80211_frame *);
if (error != 0 && error != USBD_IN_PROGRESS) {
printf("%s: could not transmit TX data URB!\n",
sc->sc_dev.dv_xname);
+ splx(s);
return;
}
-/* $OpenBSD: udl.c,v 1.82 2015/03/14 03:38:49 jsg Exp $ */
+/* $OpenBSD: udl.c,v 1.83 2015/05/02 10:44:29 jsg Exp $ */
/*
* Copyright (c) 2009 Marcus Glocker <mglocker@openbsd.org>
}
if (i == UDL_CMD_XFER_COUNT) {
/* this shouldn't happen */
+ splx(s);
return (USBD_IN_USE);
}
cx = &sc->sc_cmd_xfer[i];