Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Aug 2014 13:11:59 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r270045 - stable/10/sys/security/mac
Message-ID:  <201408161311.s7GDBxkg037046@svn.freebsd.org>

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



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