patch-2.3.50 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
- Lines: 20
- Date:
Tue Mar 7 11:10:13 2000
- Orig file:
v2.3.49/linux/fs/binfmt_em86.c
- Orig date:
Sat Feb 26 22:31:51 2000
diff -u --recursive --new-file v2.3.49/linux/fs/binfmt_em86.c linux/fs/binfmt_em86.c
@@ -42,7 +42,9 @@
}
bprm->sh_bang++; /* Well, the bang-shell is implicit... */
+ lock_kernel();
dput(bprm->dentry);
+ unlock_kernel();
bprm->dentry = NULL;
/* Unlike in the script case, we don't have to do any hairy
@@ -78,7 +80,9 @@
* Note that we use open_namei() as the name is now in kernel
* space, and we don't need to copy it.
*/
+ lock_kernel();
dentry = open_namei(interp, 0, 0);
+ unlock_kernel();
if (IS_ERR(dentry))
return PTR_ERR(dentry);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)