projects
/
linux-2.6-block.git
/ 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
[linux-2.6-block.git]
/
fs
/
compat.c
diff --git
a/fs/compat.c
b/fs/compat.c
index 263990ae409664351368369f926f0ae30ffc32ae..ef5a0771592d1a5d30d2cb9eb53799ed2c862520 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);