diff options
author | pfg <pfg@FreeBSD.org> | 2016-05-05 01:34:58 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-05-05 01:34:58 +0000 |
commit | d30419d212fe0fd984030d45b5861dd75368e179 (patch) | |
tree | e6a926369284620b503a8e69229f6a412b2f93e7 /sys/fs | |
parent | e82a8404964dd8e6d14e369305f04c4c71443dcc (diff) | |
download | FreeBSD-src-d30419d212fe0fd984030d45b5861dd75368e179.zip FreeBSD-src-d30419d212fe0fd984030d45b5861dd75368e179.tar.gz |
MFC r298732:
sys/devfs: unsign an index to prevent signed integer overflow.
cdp_maxdirent in struct:cdev_priv is of type u_int. Use the same
type for the corresponding index in devfs_revoke().
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/devfs/devfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index a45e07d..c0d135d 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -1409,7 +1409,7 @@ devfs_revoke(struct vop_revoke_args *ap) struct cdev *dev; struct cdev_priv *cdp; struct devfs_dirent *de; - int i; + u_int i; KASSERT((ap->a_flags & REVOKEALL) != 0, ("devfs_revoke !REVOKEALL")); |