X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fopen.c;h=68354466879f619b0bf6d626e8130c1675e115b7;hb=015816a1099be02403b67ee4130f4fcef1f75934;hp=e3441f58d2e10c4ce2fb8ba1872be57189db6b02;hpb=8fd5e7a2d9574b3cac1c9264ad1aed3b613ed6fe;p=karo-tx-linux.git diff --git a/fs/open.c b/fs/open.c index e3441f58d2e1..68354466879f 100644 --- a/fs/open.c +++ b/fs/open.c @@ -704,7 +704,7 @@ static int do_dentry_open(struct file *f, f->f_mode = FMODE_PATH; path_get(&f->f_path); - inode = file_inode(f); + inode = f->f_inode = f->f_path.dentry->d_inode; if (f->f_mode & FMODE_WRITE) { error = __get_file_write_access(inode, f->f_path.mnt); if (error) @@ -767,6 +767,7 @@ cleanup_file: path_put(&f->f_path); f->f_path.mnt = NULL; f->f_path.dentry = NULL; + f->f_inode = NULL; return error; }