From 175c7856108bbbf3d517c4d082b0159e5acc9241 Mon Sep 17 00:00:00 2001 From: Marcus Glocker Date: Sun, 26 Nov 2006 14:50:40 +0000 Subject: It's sizeof(struct ieee80211_frame) not sizeof(struct ieee80211_frame *). Spotted by damien@ --- sys/dev/ic/malo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/dev') 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 @@ -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); -- cgit v1.2.3