diff -u linux-2.6.16-rc5-vs2.1.1-rc11/fs/read_write.c linux-2.6.16-rc5-vs2.1.1-rc12/fs/read_write.c --- linux-2.6.16-rc5-vs2.1.1-rc11/fs/read_write.c 2006-03-09 23:43:32 +0100 +++ linux-2.6.16-rc5-vs2.1.1-rc12/fs/read_write.c 2006-03-11 19:42:52 +0100 @@ -656,10 +656,9 @@ if (!(in_file->f_mode & FMODE_PREAD)) return -ESPIPE; - ret = rw_verify_area(FLOCK_VERIFY_READ, in_file, ppos, count); - if (ret < 0) + ret = rw_verify_area(READ, in_file, ppos, count); + if (ret) return ret; - count = ret; /* verify out_file */ out_inode = out_file->f_dentry->d_inode; @@ -668,10 +667,9 @@ if (!out_file->f_op || !out_file->f_op->sendpage) return -EINVAL; - ret = rw_verify_area(FLOCK_VERIFY_WRITE, out_file, &out_file->f_pos, count); - if (ret < 0) + ret = rw_verify_area(WRITE, out_file, &out_file->f_pos, count); + if (ret) return ret; - count = ret; ret = security_file_permission (out_file, MAY_WRITE); if (ret)