diff options
author | Andre Oppermann <andre@FreeBSD.org> | 2005-09-26 20:35:45 +0000 |
---|---|---|
committer | Andre Oppermann <andre@FreeBSD.org> | 2005-09-26 20:35:45 +0000 |
commit | 8dbf6c2dc8519bc28b9d76ed9a733c89193eabbb (patch) | |
tree | 861e174362af8957826d5ddd30064726590d6f2c /sys | |
parent | c711b5fe88374ae1e73239c6eed0cce57aeb4b83 (diff) | |
download | src-8dbf6c2dc8519bc28b9d76ed9a733c89193eabbb.tar.gz src-8dbf6c2dc8519bc28b9d76ed9a733c89193eabbb.zip |
Replace custom mbuf writeability test with generic M_WRITABLE() test
covering all edge cases too.
Sponsored by: TCP/IP Optimization Fundraise 2005
Notes
Notes:
svn path=/head/; revision=150599
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netipsec/ipsec_mbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipsec/ipsec_mbuf.c b/sys/netipsec/ipsec_mbuf.c index f44ff7aba54b..ade7d3313bd0 100644 --- a/sys/netipsec/ipsec_mbuf.c +++ b/sys/netipsec/ipsec_mbuf.c @@ -92,7 +92,7 @@ m_clone(struct mbuf *m0) /* * Writable mbufs are left alone (for now). */ - if (!MEXT_IS_REF(m)) { + if (M_WRITABLE(m)) { mprev = m; continue; } |