HomeFreeBSD

sys/devfs: unsign an index to prevent signed integer overflow.

Description

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().

MFC after: 1 week

Details

Provenance
pfgAuthored on
Parents
rS298731: ndis(4): unsign some indexes to prevent overflows.
Branches
Unknown
Tags
Unknown