--- linux-2.6.20/fs/read_write.c 2007-02-07 18:21:59.000000000 +0100 +++ linux-2.6.20-ed/fs/read_write.c 2007-02-07 18:23:41.000000000 +0100 @@ -197,13 +197,13 @@ int rw_verify_area(int read_write, struc struct inode *inode; loff_t pos; + inode = file->f_path.dentry->d_inode; if (unlikely((ssize_t) count < 0)) goto Einval; pos = *ppos; if (unlikely((pos < 0) || (loff_t) (pos + count) < 0)) goto Einval; - inode = file->f_path.dentry->d_inode; if (unlikely(inode->i_flock && MANDATORY_LOCK(inode))) { int retval = locks_mandatory_area( read_write == READ ? FLOCK_VERIFY_READ : FLOCK_VERIFY_WRITE,