svn commit: r270045 - stable/10/sys/security/mac
Bjoern A. Zeeb
bz at FreeBSD.org
Sat Aug 16 13:12:00 UTC 2014
Author: bz
Date: Sat Aug 16 13:11:59 2014
New Revision: 270045
URL: http://svnweb.freebsd.org/changeset/base/270045
Log:
MFC r259885:
As constantly reported during kernel compilation, m_buflen is unsigned so
can never be < 0. Remove the expression, which can never be true.
Modified:
stable/10/sys/security/mac/mac_framework.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/security/mac/mac_framework.c
==============================================================================
--- stable/10/sys/security/mac/mac_framework.c Sat Aug 16 13:09:40 2014 (r270044)
+++ stable/10/sys/security/mac/mac_framework.c Sat Aug 16 13:11:59 2014 (r270045)
@@ -587,8 +587,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);
More information about the svn-src-stable-10
mailing list