Solar Designer: missing f_maxcount initialization

Linux Kernel Mailing List <[email protected]>
Newsgroups gmane.linux.kernel.commits.2-4
Message-ID <[email protected]>
ChangeSet 1.1555, 2005/02/08 12:35:49-02:00, [email protected]

	Solar Designer: missing f_maxcount initialization



 file_table.c |    2 ++
 nfsd/vfs.c   |    2 ++
 2 files changed, 4 insertions(+)


diff -Nru a/fs/file_table.c b/fs/file_table.c
--- a/fs/file_table.c	2005-02-08 13:03:09 -08:00
+++ b/fs/file_table.c	2005-02-08 13:03:09 -08:00
@@ -92,6 +92,8 @@
 	filp->f_uid    = current->fsuid;
 	filp->f_gid    = current->fsgid;
 	filp->f_op     = dentry->d_inode->i_fop;
+	filp->f_maxcount = INT_MAX;
+
 	if (filp->f_op->open)
 		return filp->f_op->open(dentry->d_inode, filp);
 	else
diff -Nru a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
--- a/fs/nfsd/vfs.c	2005-02-08 13:03:09 -08:00
+++ b/fs/nfsd/vfs.c	2005-02-08 13:03:09 -08:00
@@ -466,6 +466,8 @@
 	atomic_set(&filp->f_count, 1);
 	filp->f_dentry = dentry;
 	filp->f_vfsmnt = fhp->fh_export->ex_mnt;
+	filp->f_maxcount = INT_MAX;
+
 	if (access & MAY_WRITE) {
 		filp->f_flags = O_WRONLY|O_LARGEFILE;
 		filp->f_mode  = FMODE_WRITE;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.