summaryrefslogtreecommitdiff
path: root/sys/dev/fatm
diff options
context:
space:
mode:
authorAndre Oppermann <andre@FreeBSD.org>2005-09-19 21:59:49 +0000
committerAndre Oppermann <andre@FreeBSD.org>2005-09-19 21:59:49 +0000
commit0ec75b9be9c75895e9662076f9ccbf1990f2256c (patch)
treeca869d6b4a745c774cfef0d18c82ca3b1e306899 /sys/dev/fatm
parentcf61a39e6cd95a47ccd11733106988a23c541c73 (diff)
Notes
Diffstat (limited to 'sys/dev/fatm')
-rw-r--r--sys/dev/fatm/if_fatm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fatm/if_fatm.c b/sys/dev/fatm/if_fatm.c
index cf4437415313..30e2734dbd5b 100644
--- a/sys/dev/fatm/if_fatm.c
+++ b/sys/dev/fatm/if_fatm.c
@@ -1838,7 +1838,7 @@ fatm_fix_chain(struct fatm_softc *sc, struct mbuf **mp)
d = mtod(m, u_char *);
if ((off = (uintptr_t)(void *)d % 4) != 0) {
- if (!(m->m_flags & M_EXT) || !MEXT_IS_REF(m)) {
+ if (M_WRITABLE(m)) {
sc->istats.fix_addr_copy++;
bcopy(d, d - off, m->m_len);
m->m_data = (caddr_t)(d - off);
@@ -1857,7 +1857,7 @@ fatm_fix_chain(struct fatm_softc *sc, struct mbuf **mp)
}
if ((off = m->m_len % 4) != 0) {
- if ((m->m_flags & M_EXT) && MEXT_IS_REF(m)) {
+ if (!M_WRITABLE(m)) {
if ((new = copy_mbuf(m)) == NULL) {
sc->istats.fix_len_noext++;
goto fail;