fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / fs / binfmt_flat.c
index a37a000..96ad9e0 100644 (file)
@@ -430,7 +430,7 @@ static int load_flat_file(struct linux_binprm * bprm,
        int ret;
 
        hdr = ((struct flat_hdr *) bprm->buf);          /* exec-header */
-       inode = bprm->file->f_dentry->d_inode;
+       inode = bprm->file->f_path.dentry->d_inode;
 
        text_len  = ntohl(hdr->data_start);
        data_len  = ntohl(hdr->data_end) - ntohl(hdr->data_start);