]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a bug in m_split(): the "m->m_ext.ext_size" field of an mbuf was being
authorarchie <archie@FreeBSD.org>
Fri, 31 May 2002 22:09:57 +0000 (22:09 +0000)
committerarchie <archie@FreeBSD.org>
Fri, 31 May 2002 22:09:57 +0000 (22:09 +0000)
commitf138a74bc88eb0aea934104e030bfa907243ba45
tree13f7bcda0e57d982f4feaf39045da20fdf12bba1
parent43d66222dd584cbdfa479816200284385112943c
Fix a bug in m_split(): the "m->m_ext.ext_size" field of an mbuf was being
set to zero. This field indicates the total space in the external buffer
and therefore should not be modified after the external buffer is added.

Add a comment warning that the mbufs returned by m_split() might be read-only.

Fix M_TRAILINGSPACE() to return zero if !M_WRITABLE(m).

Reviewed by: freebsd-net
Obtained from: Vernier Networks, Inc.
MFC after: 1 week
sys/kern/uipc_mbuf.c
sys/sys/mbuf.h