aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2005-03-29 21:06:28 +0000
committerSam Leffler <sam@FreeBSD.org>2005-03-29 21:06:28 +0000
commit019b966921625c5670382e9215f381475f13bf97 (patch)
tree486911daaf1835b5842a43e73a59adfa07c87390 /sys/dev
parentf0fd5e07bbc1f133f29c257c031378f9dae42697 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ath/if_ath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index e0d75846b123a..b28fa36cb9451 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -2925,7 +2925,8 @@ again:
n = m->m_next;
if (n == NULL)
break;
- if (n->m_len < M_TRAILINGSPACE(m)) {
+ if ((m->m_flags & M_RDONLY) == 0 &&
+ n->m_len < M_TRAILINGSPACE(m)) {
bcopy(mtod(n, void *), mtod(m, char *) + m->m_len,
n->m_len);
m->m_len += n->m_len;