Date: Tue, 7 Mar 2017 06:46:38 +0000 (UTC) From: Hiren Panchasara <hiren@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r314838 - head/sys/kern Message-ID: <201703070646.v276kcDQ000651@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703070646.v276kcDQ000651>