We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bf2fed commit 594d2a1Copy full SHA for 594d2a1
fs/binfmt_elf.c
@@ -911,7 +911,7 @@ static int load_elf_binary(struct linux_binprm *bprm)
911
interp_elf_ex = kmalloc(sizeof(*interp_elf_ex), GFP_KERNEL);
912
if (!interp_elf_ex) {
913
retval = -ENOMEM;
914
- goto out_free_ph;
+ goto out_free_file;
915
}
916
917
/* Get the exec headers */
@@ -1354,6 +1354,7 @@ static int load_elf_binary(struct linux_binprm *bprm)
1354
out_free_dentry:
1355
kfree(interp_elf_ex);
1356
kfree(interp_elf_phdata);
1357
+out_free_file:
1358
allow_write_access(interpreter);
1359
if (interpreter)
1360
fput(interpreter);
0 commit comments