summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/irixelf.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-06-25 22:25:00 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-06-25 22:25:00 +0000
commit1e06cd329da230702f8426be546410f0f5cde959 (patch)
tree3d805805cfed24e0308bf939234e96adbba3dc7e /arch/mips/kernel/irixelf.c
parentd0136abacef67e0edf0fdda35664ace89f7c9bdd (diff)
Fix compilation.
Diffstat (limited to 'arch/mips/kernel/irixelf.c')
-rw-r--r--arch/mips/kernel/irixelf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/mips/kernel/irixelf.c b/arch/mips/kernel/irixelf.c
index 89cd0f548..8e0e59907 100644
--- a/arch/mips/kernel/irixelf.c
+++ b/arch/mips/kernel/irixelf.c
@@ -1,5 +1,4 @@
-/* $Id: irixelf.c,v 1.28 2000/03/23 02:25:42 ralf Exp $
- *
+/*
* irixelf.c: Code to load IRIX ELF executables which conform to
* the MIPS ABI.
*
@@ -467,8 +466,9 @@ static inline int look_for_irix_interpreter(char **name,
return 0;
dput_and_out:
- allow_write_access(file);
+ lock_kernel();
fput(file);
+ unlock_kernel();
out:
kfree(*name);
return retval;
@@ -778,8 +778,9 @@ out:
return retval;
out_free_dentry:
- allow_write_access(interpreter);
+ lock_kernel();
fput(interpreter);
+ unlock_kernel();
out_free_interp:
if (elf_interpreter)
kfree(elf_interpreter);