Protect against cases where interpreter is NULL. Patch against 2.4.26-rc2.
Error noted by Kirill Korotaev <[email protected]>.
--- a/fs/binfmt_elf.c~unshare 2004-04-08 15:13:55.654720832 -0700
+++ b/fs/binfmt_elf.c 2004-04-08 15:23:52.788942632 -0700
@@ -821,7 +821,8 @@
/* error cleanup */
out_free_dentry:
allow_write_access(interpreter);
- fput(interpreter);
+ if (interpreter)
+ fput(interpreter);
out_free_interp:
if (elf_interpreter)
kfree(elf_interpreter);