View | Details | Raw Unified | Return to bug 65318
Collapse All | Expand All

(-)a/fs/file_table.c (+1 lines)
Lines 85-90 Link Here
85
			rwlock_init(&f->f_owner.lock);
85
			rwlock_init(&f->f_owner.lock);
86
			/* f->f_version: 0 */
86
			/* f->f_version: 0 */
87
			INIT_LIST_HEAD(&f->f_list);
87
			INIT_LIST_HEAD(&f->f_list);
88
			f->f_maxcount = INT_MAX;
88
			return f;
89
			return f;
89
		}
90
		}
90
	}
91
	}
(-)a/fs/read_write.c (-1 / +5 lines)
Lines 185-192 Link Here
185
185
186
int rw_verify_area(int read_write, struct file *file, loff_t *ppos, size_t count)
186
int rw_verify_area(int read_write, struct file *file, loff_t *ppos, size_t count)
187
{
187
{
188
	struct inode *inode = file->f_dentry->d_inode;
188
	struct inode *inode;
189
189
190
	if (count > file->f_maxcount)
191
		return -EINVAL;
192
193
	inode = file->f_dentry->d_inode;
190
	if (inode->i_flock && MANDATORY_LOCK(inode))
194
	if (inode->i_flock && MANDATORY_LOCK(inode))
191
		return locks_mandatory_area(read_write == READ ? FLOCK_VERIFY_READ : FLOCK_VERIFY_WRITE, inode, file, *ppos, count);
195
		return locks_mandatory_area(read_write == READ ? FLOCK_VERIFY_READ : FLOCK_VERIFY_WRITE, inode, file, *ppos, count);
192
	return 0;
196
	return 0;
(-)a/include/linux/fs.h (+1 lines)
Lines 586-591 Link Here
586
	unsigned int		f_uid, f_gid;
586
	unsigned int		f_uid, f_gid;
587
	struct file_ra_state	f_ra;
587
	struct file_ra_state	f_ra;
588
588
589
	size_t			f_maxcount;
589
	unsigned long		f_version;
590
	unsigned long		f_version;
590
	void			*f_security;
591
	void			*f_security;
591
592

Return to bug 65318