VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Al Viro <viro@zeniv.linux.org.uk> 2013-01-23 17:07:38 -0500 committer: Al Viro <viro@zeniv.linux.org.uk> 2013-02-22 23:31:31 -0500 commit: 496ad9aa8ef448058e36ca7a787c61f2e63f0f54 parent: 57eccb830f1cc93d4b506ba306d8dfa685e0c88f
Commit Summary:
new helper: file_inode(file)
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c
index b56371981d16..2036d21baaef 100644
--- a/fs/binfmt_flat.c
+++ b/fs/binfmt_flat.c
@@ -438,7 +438,7 @@ static int load_flat_file(struct linux_binprm * bprm,
 	int ret;
 
 	hdr = ((struct flat_hdr *) bprm->buf);		/* exec-header */
-	inode = bprm->file->f_path.dentry->d_inode;
+	inode = file_inode(bprm->file);
 
 	text_len  = ntohl(hdr->data_start);
 	data_len  = ntohl(hdr->data_end) - ntohl(hdr->data_start);