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
/
compat.c
diff --git
a/fs/compat.c
b/fs/compat.c
index
263990a
..
ef5a077
100644
(file)
--- a/
fs/compat.c
+++ b/
fs/compat.c
@@
-1476,10
+1476,9
@@
int compat_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);