mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-03 23:28:58 +00:00
Replace custom mbuf writeability test with generic M_WRITABLE() test
covering all edge cases too. Sponsored by: TCP/IP Optimization Fundraise 2005
This commit is contained in:
parent
c711b5fe88
commit
8dbf6c2dc8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=150599
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue