diff options
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1143,10 +1143,9 @@ int do_execve(char * filename, | |||
1143 | int i; | 1143 | int i; |
1144 | 1144 | ||
1145 | retval = -ENOMEM; | 1145 | retval = -ENOMEM; |
1146 | bprm = kmalloc(sizeof(*bprm), GFP_KERNEL); | 1146 | bprm = kzalloc(sizeof(*bprm), GFP_KERNEL); |
1147 | if (!bprm) | 1147 | if (!bprm) |
1148 | goto out_ret; | 1148 | goto out_ret; |
1149 | memset(bprm, 0, sizeof(*bprm)); | ||
1150 | 1149 | ||
1151 | file = open_exec(filename); | 1150 | file = open_exec(filename); |
1152 | retval = PTR_ERR(file); | 1151 | retval = PTR_ERR(file); |