mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] use kzalloc and kcalloc in core fs code
Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
656bde5728
commit
11b0b5abb2
8 changed files with 10 additions and 22 deletions
|
|
@ -1143,10 +1143,9 @@ int do_execve(char * filename,
|
|||
int i;
|
||||
|
||||
retval = -ENOMEM;
|
||||
bprm = kmalloc(sizeof(*bprm), GFP_KERNEL);
|
||||
bprm = kzalloc(sizeof(*bprm), GFP_KERNEL);
|
||||
if (!bprm)
|
||||
goto out_ret;
|
||||
memset(bprm, 0, sizeof(*bprm));
|
||||
|
||||
file = open_exec(filename);
|
||||
retval = PTR_ERR(file);
|
||||
|
|
|
|||
Loading…
Reference in a new issue