Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2012 13:47:21 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r235165 - stable/9/sys/netinet
Message-ID:  <201205091347.q49DlLIM085566@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205091347.q49DlLIM085566>