Date: Wed, 25 Dec 2013 20:10:17 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r259885 - head/sys/security/mac Message-ID: <201312252010.rBPKAHwN086539@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bz Date: Wed Dec 25 20:10:17 2013 New Revision: 259885 URL: http://svnweb.freebsd.org/changeset/base/259885 Log: As constantly reported during kernel compilation, m_buflen is unsigned so can never be < 0. Remove the expression, which can never be true. MFC after: 1 week Modified: head/sys/security/mac/mac_framework.c Modified: head/sys/security/mac/mac_framework.c ============================================================================== --- head/sys/security/mac/mac_framework.c Wed Dec 25 20:08:44 2013 (r259884) +++ head/sys/security/mac/mac_framework.c Wed Dec 25 20:10:17 2013 (r259885) @@ -586,8 +586,7 @@ int mac_check_structmac_consistent(struct mac *mac) { - if (mac->m_buflen < 0 || - mac->m_buflen > MAC_MAX_LABEL_BUF_LEN) + if (mac->m_buflen > MAC_MAX_LABEL_BUF_LEN) return (EINVAL); return (0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312252010.rBPKAHwN086539>