Author: trasz
Date: Thu Jun  3 13:45:27 2010
New Revision: 208781
URL: http://svn.freebsd.org/changeset/base/208781

Log:
  The 'acl_cnt' field is unsigned; no point in checking if it's >= 0.
  
  Found with:   Coverity Prevent
  CID:          3688

Modified:
  head/sys/kern/vfs_acl.c

Modified: head/sys/kern/vfs_acl.c
==============================================================================
--- head/sys/kern/vfs_acl.c     Thu Jun  3 13:43:58 2010        (r208780)
+++ head/sys/kern/vfs_acl.c     Thu Jun  3 13:45:27 2010        (r208781)
@@ -92,7 +92,7 @@ acl_copy_acl_into_oldacl(const struct ac
 {
        int i;
 
-       if (source->acl_cnt < 0 || source->acl_cnt > OLDACL_MAX_ENTRIES)
+       if (source->acl_cnt > OLDACL_MAX_ENTRIES)
                return (EINVAL);
 
        bzero(dest, sizeof(*dest));
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to