Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions fs/nsfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ static struct dentry *nsfs_fh_to_dentry(struct super_block *sb, struct fid *fh,

/* Check that any trailing bytes are zero. */
if ((fh_len > NSFS_FID_SIZE_U32_LATEST) &&
memchr_inv((void *)fid + NSFS_FID_SIZE_U32_LATEST, 0,
fh_len - NSFS_FID_SIZE_U32_LATEST))
memchr_inv((void *)fid + NSFS_FILE_HANDLE_SIZE_LATEST, 0,
(fh_len - NSFS_FID_SIZE_U32_LATEST) * sizeof(u32)))
return NULL;

switch (fh_type) {
Expand Down Expand Up @@ -624,6 +624,7 @@ static struct dentry *nsfs_fh_to_dentry(struct super_block *sb, struct fid *fh,
break;
#endif
default:
ns->ops->put(ns);
return ERR_PTR(-EOPNOTSUPP);
}

Expand Down
Loading