diff options
author | rwatson <rwatson@FreeBSD.org> | 2014-10-12 15:49:52 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2014-10-12 15:49:52 +0000 |
commit | 9532a34956eebfbc46d32db0a73a33a09ff42fb8 (patch) | |
tree | 3d1cc176a1a9d02914a169d4a5df66a82f05c1b7 /sys/dev/uart/uart_dev_imx.c | |
parent | 2791f385b984a34d6a9ec9d1a14314a9d323d57f (diff) | |
download | FreeBSD-src-9532a34956eebfbc46d32db0a73a33a09ff42fb8.zip FreeBSD-src-9532a34956eebfbc46d32db0a73a33a09ff42fb8.tar.gz |
When deciding whether to call m_pullup() even though there is adequate
data in an mbuf, use M_WRITABLE() instead of a direct test of M_EXT;
the latter both unnecessarily exposes mbuf-allocator internals in the
protocol stack and is also insufficient to catch all cases of
non-writability.
(NB: m_pullup() does not actually guarantee that a writable mbuf is
returned, so further refinement of all of these code paths continues to
be required.)
Reviewed by: bz
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D900
Diffstat (limited to 'sys/dev/uart/uart_dev_imx.c')
0 files changed, 0 insertions, 0 deletions