Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7390
b: refs/heads/master
c: 2832e93
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and Linus Torvalds committed Sep 7, 2005
1 parent 03446e6 commit 8690826
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0730ded5be28653675ed314fdd878b8db5f88aa4
refs/heads/master: 2832e9366a1fcd6f76957a42157be041240f994e
1 change: 0 additions & 1 deletion trunk/fs/file_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ struct file *get_empty_filp(void)
rwlock_init(&f->f_owner.lock);
/* f->f_version: 0 */
INIT_LIST_HEAD(&f->f_list);
f->f_maxcount = INT_MAX;
return f;

over:
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/read_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ int rw_verify_area(int read_write, struct file *file, loff_t *ppos, size_t count
struct inode *inode;
loff_t pos;

if (unlikely(count > file->f_maxcount))
if (unlikely(count > INT_MAX))
goto Einval;
pos = *ppos;
if (unlikely((pos < 0) || (loff_t) (pos + count) < 0))
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@ struct file {
unsigned int f_uid, f_gid;
struct file_ra_state f_ra;

size_t f_maxcount;
unsigned long f_version;
void *f_security;

Expand Down

0 comments on commit 8690826

Please sign in to comment.