minor typo in sys/kern/uipc_socket2.c
JINMEI Tatuya /神明達哉
jinmei at isl.rdc.toshiba.co.jp
Tue Oct 26 20:29:22 PDT 2004
FreeBSD current (and the 5.3 branch) needs the following patch.
Otherwise, it always consumes mbuf cluster for cmsg items even when
unnecessary.
(I should probably file a PR for this, but I currently do not have a
good access to the PR system. So please forgive me to send this to
the list.)
JINMEI, Tatuya
Communication Platform Lab.
Corporate R&D Center, Toshiba Corp.
jinmei at isl.rdc.toshiba.co.jp
Index: uipc_socket2.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/uipc_socket2.c,v
retrieving revision 1.137
diff -u -r1.137 uipc_socket2.c
--- uipc_socket2.c 15 Aug 2004 06:24:41 -0000 1.137
+++ uipc_socket2.c 27 Oct 2004 03:26:48 -0000
@@ -1253,7 +1253,7 @@
if (CMSG_SPACE((u_int)size) > MCLBYTES)
return ((struct mbuf *) NULL);
- if (CMSG_SPACE((u_int)size > MLEN))
+ if (CMSG_SPACE((u_int)size) > MLEN)
m = m_getcl(M_DONTWAIT, MT_CONTROL, 0);
else
m = m_get(M_DONTWAIT, MT_CONTROL);
More information about the freebsd-current
mailing list