Author: hiren
Date: Tue Mar  7 06:46:38 2017
New Revision: 314838
URL: https://svnweb.freebsd.org/changeset/base/314838

Log:
  Fix the KASSERT check from r314813.
  len being 0 is valid.
  
  Submitted by: ngie
  Reported by:  ngie (via jenkins test run)
  Sponsored by: Limelight Networks

Modified:
  head/sys/kern/uipc_sockbuf.c

Modified: head/sys/kern/uipc_sockbuf.c
==============================================================================
--- head/sys/kern/uipc_sockbuf.c        Tue Mar  7 06:11:36 2017        
(r314837)
+++ head/sys/kern/uipc_sockbuf.c        Tue Mar  7 06:46:38 2017        
(r314838)
@@ -1043,7 +1043,7 @@ sbcut_internal(struct sockbuf *sb, int l
 {
        struct mbuf *m, *next, *mfree;
 
-       KASSERT(len > 0, ("%s: len is %d but it is supposed to be +ve",
+       KASSERT(len >= 0, ("%s: len is %d but it is supposed to be >= 0",
            __func__, len));
        KASSERT(len <= sb->sb_ccc, ("%s: len: %d is > ccc: %u",
            __func__, len, sb->sb_ccc));
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to