diff options
author | trasz <trasz@FreeBSD.org> | 2010-06-03 13:45:27 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2010-06-03 13:45:27 +0000 |
commit | 253bf0319dc35342eae91a3543a07ac723062335 (patch) | |
tree | d11e3fdaf4b7ebb92a2f1cff02a055a8f6af2557 /sys/kern | |
parent | 9985f972fdf974d991675a2a993da9d5f2e0044c (diff) | |
download | FreeBSD-src-253bf0319dc35342eae91a3543a07ac723062335.zip FreeBSD-src-253bf0319dc35342eae91a3543a07ac723062335.tar.gz |
The 'acl_cnt' field is unsigned; no point in checking if it's >= 0.
Found with: Coverity Prevent
CID: 3688
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_acl.c b/sys/kern/vfs_acl.c index c44bb25..b1cda38 100644 --- a/sys/kern/vfs_acl.c +++ b/sys/kern/vfs_acl.c @@ -92,7 +92,7 @@ acl_copy_acl_into_oldacl(const struct acl *source, struct oldacl *dest) { 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)); |