git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] use kzalloc and kcalloc in core fs code
[safe/jmp/linux-2.6]
/
fs
/
exec.c
diff --git
a/fs/exec.c
b/fs/exec.c
index
d8c477a
..
995cba3
100644
(file)
--- a/
fs/exec.c
+++ b/
fs/exec.c
@@
-1143,10
+1143,9
@@
int do_execve(char * filename,
int i;
retval = -ENOMEM;
- bprm = k
m
alloc(sizeof(*bprm), GFP_KERNEL);
+ bprm = k
z
alloc(sizeof(*bprm), GFP_KERNEL);
if (!bprm)
goto out_ret;
- memset(bprm, 0, sizeof(*bprm));
file = open_exec(filename);
retval = PTR_ERR(file);