Be sure not to overflow struct fid.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2009-09-13 10:25:33 +00:00
parent f53901193d
commit 7dae3c4faf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197151

View File

@ -1149,6 +1149,8 @@ zfs_checkexp(vfs_t *vfsp, struct sockaddr *nam, int *extflagsp,
credanonp, numsecflavors, secflavors));
}
CTASSERT(SHORT_FID_LEN <= sizeof(struct fid));
CTASSERT(LONG_FID_LEN <= sizeof(struct fid));
static int
zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, vnode_t **vpp)