summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2006-11-26 14:50:40 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2006-11-26 14:50:40 +0000
commit175c7856108bbbf3d517c4d082b0159e5acc9241 (patch)
treee931fe34c972d164f2cac95fed3f4d4c5b252342 /sys/dev
parent21b5c69fb0a8e719f2e6852fd81a2167807fdc40 (diff)
It's sizeof(struct ieee80211_frame) not sizeof(struct ieee80211_frame *).
Spotted by damien@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/malo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/malo.c b/sys/dev/ic/malo.c
index acae293aa55..c58b029758e 100644
--- a/sys/dev/ic/malo.c
+++ b/sys/dev/ic/malo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: malo.c,v 1.39 2006/11/26 11:14:18 deraadt Exp $ */
+/* $OpenBSD: malo.c,v 1.40 2006/11/26 14:50:39 mglocker Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
@@ -1351,8 +1351,8 @@ malo_tx_mgt(struct malo_softc *sc, struct mbuf *m0, struct ieee80211_node *ni)
desc = &sc->sc_txring.desc[sc->sc_txring.cur];
data = &sc->sc_txring.data[sc->sc_txring.cur];
- if (m0->m_len < sizeof(struct ieee80211_frame *)) {
- m0 = m_pullup(m0, sizeof(struct ieee80211_frame *));
+ if (m0->m_len < sizeof(struct ieee80211_frame)) {
+ m0 = m_pullup(m0, sizeof(struct ieee80211_frame));
if (m0 == NULL) {
ifp->if_ierrors++;
return (ENOBUFS);
@@ -1462,8 +1462,8 @@ malo_tx_data(struct malo_softc *sc, struct mbuf *m0,
desc = &sc->sc_txring.desc[sc->sc_txring.cur];
data = &sc->sc_txring.data[sc->sc_txring.cur];
- if (m0->m_len < sizeof(struct ieee80211_frame *)) {
- m0 = m_pullup(m0, sizeof(struct ieee80211_frame *));
+ if (m0->m_len < sizeof(struct ieee80211_frame)) {
+ m0 = m_pullup(m0, sizeof(struct ieee80211_frame));
if (m0 == NULL) {
ifp->if_ierrors++;
return (ENOBUFS);