aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/binfmt_elf.c2
-rw-r--r--fs/binfmt_elf_fdpic.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
index 80ca932ba0bd..a4f6f57d91aa 100644
--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -622,7 +622,7 @@ static int load_elf_binary(struct linux_binprm * bprm, struct pt_regs * regs)
622 goto out_free_file; 622 goto out_free_file;
623 623
624 retval = -ENOMEM; 624 retval = -ENOMEM;
625 elf_interpreter = (char *) kmalloc(elf_ppnt->p_filesz, 625 elf_interpreter = kmalloc(elf_ppnt->p_filesz,
626 GFP_KERNEL); 626 GFP_KERNEL);
627 if (!elf_interpreter) 627 if (!elf_interpreter)
628 goto out_free_file; 628 goto out_free_file;
diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c
index e0344f69c79d..5b3076e8ee90 100644
--- a/fs/binfmt_elf_fdpic.c
+++ b/fs/binfmt_elf_fdpic.c
@@ -187,7 +187,7 @@ static int load_elf_fdpic_binary(struct linux_binprm *bprm, struct pt_regs *regs
187 goto error; 187 goto error;
188 188
189 /* read the name of the interpreter into memory */ 189 /* read the name of the interpreter into memory */
190 interpreter_name = (char *) kmalloc(phdr->p_filesz, GFP_KERNEL); 190 interpreter_name = kmalloc(phdr->p_filesz, GFP_KERNEL);
191 if (!interpreter_name) 191 if (!interpreter_name)
192 goto error; 192 goto error;
193 193