diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-07-31 23:00:39 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-07-31 23:00:39 +0000 |
commit | dcfaad97f820f981b62b29ea90c8a42117cf097d (patch) | |
tree | 9e51ff6687b9c0e543938adad5aa97394b205cf9 /sys/dev/pcmcia | |
parent | a210e3010a168e566799b81f4131147f0230866c (diff) |
Add missing splx(s); calls. OK mglocker@
Diffstat (limited to 'sys/dev/pcmcia')
-rw-r--r-- | sys/dev/pcmcia/if_malo.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/pcmcia/if_malo.c b/sys/dev/pcmcia/if_malo.c index 5e5516b7374..296a7c594e9 100644 --- a/sys/dev/pcmcia/if_malo.c +++ b/sys/dev/pcmcia/if_malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_malo.c,v 1.26 2007/07/31 22:01:37 claudio Exp $ */ +/* $OpenBSD: if_malo.c,v 1.27 2007/07/31 23:00:38 claudio Exp $ */ /* * Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org> @@ -836,9 +836,11 @@ cmalo_rx(struct malo_softc *sc) DPRINTF(2, "RX status=%d, pkglen=%d, pkgoffset=%d\n", rxdesc->status, rxdesc->pkglen, rxdesc->pkgoffset); - if (rxdesc->status != MALO_RX_STATUS_OK) + if (rxdesc->status != MALO_RX_STATUS_OK) { /* RX packet is not OK */ + splx(s); return; + } /* remove the LLC / SNAP header */ data = sc->sc_data + rxdesc->pkgoffset; @@ -850,12 +852,14 @@ cmalo_rx(struct malo_softc *sc) MGETHDR(m, M_DONTWAIT, MT_DATA); if (m == NULL) { ifp->if_ierrors++; + splx(s); return; } MCLGET(m, M_DONTWAIT); if (!(m->m_flags & M_EXT)) { ifp->if_ierrors++; m_freem(m); + splx(s); return; } m->m_pkthdr.rcvif = ifp; |