diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2006-11-26 14:50:40 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2006-11-26 14:50:40 +0000 |
commit | 175c7856108bbbf3d517c4d082b0159e5acc9241 (patch) | |
tree | e931fe34c972d164f2cac95fed3f4d4c5b252342 /sys | |
parent | 21b5c69fb0a8e719f2e6852fd81a2167807fdc40 (diff) |
It's sizeof(struct ieee80211_frame) not sizeof(struct ieee80211_frame *).
Spotted by damien@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/malo.c | 10 |
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); |