X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Fread_write.c;h=b60324aaa2b6731d9ddedd67badaa7b5c9790a60;hb=22c438632850c0d6257b45c90afed0cea6953afc;hp=563abd09b5c84b882cbe6f47e56d05e80e5db4b6;hpb=327309e899662b482c58cf25f574513d38b5788c;p=powerpc.git diff --git a/fs/read_write.c b/fs/read_write.c index 563abd09b5..b60324aaa2 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -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))