svn commit: r235165 - stable/9/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Wed May 9 13:47:21 UTC 2012
Author: tuexen
Date: Wed May 9 13:47:21 2012
New Revision: 235165
URL: http://svn.freebsd.org/changeset/base/235165
Log:
MFC r234996:
Call panic() only under INVARIANTS.
Modified:
stable/9/sys/netinet/sctp_crc32.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/netinet/sctp_crc32.c
==============================================================================
--- stable/9/sys/netinet/sctp_crc32.c Wed May 9 13:42:52 2012 (r235164)
+++ stable/9/sys/netinet/sctp_crc32.c Wed May 9 13:47:21 2012 (r235165)
@@ -124,7 +124,9 @@ void
sctp_delayed_cksum(struct mbuf *m, uint32_t offset)
{
#if defined(SCTP_WITH_NO_CSUM)
+#ifdef INVARIANTS
panic("sctp_delayed_cksum() called when using no SCTP CRC.");
+#endif
#else
uint32_t checksum;
More information about the svn-src-stable-9
mailing list