patch-2.3.48 linux/fs/binfmt_em86.c

Next file: linux/fs/block_dev.c
Previous file: linux/fs/binfmt_elf.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/binfmt_em86.c linux/fs/binfmt_em86.c
@@ -36,9 +36,8 @@
 	/* First of all, some simple consistency checks */
 	if ((elf_ex.e_type != ET_EXEC && elf_ex.e_type != ET_DYN) ||
 		(!((elf_ex.e_machine == EM_386) || (elf_ex.e_machine == EM_486))) ||
-		(!bprm->dentry->d_inode->i_op || 
-		!bprm->dentry->d_inode->i_op->default_file_ops ||
-		!bprm->dentry->d_inode->i_op->default_file_ops->mmap)) {
+		(!bprm->dentry->d_inode->i_fop || 
+		!bprm->dentry->d_inode->i_fop->mmap)) {
 			return -ENOEXEC;
 	}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)