Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5cf4a363 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds
Browse files
parent 22f084db
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -704,7 +704,6 @@ static int load_elf_binary(struct linux_binprm *bprm)
		struct elfhdr interp_elf_ex;
	} *loc;
	struct arch_elf_state arch_state = INIT_ARCH_ELF_STATE;
	loff_t pos;

	loc = kmalloc(sizeof(*loc), GFP_KERNEL);
	if (!loc) {
@@ -744,6 +743,8 @@ static int load_elf_binary(struct linux_binprm *bprm)

	for (i = 0; i < loc->elf_ex.e_phnum; i++) {
		if (elf_ppnt->p_type == PT_INTERP) {
			loff_t pos;

			/* This is the program interpreter used for
			 * shared libraries - for now assume that this
			 * is an a.out format binary