mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
s390: Convert vmalloc/memset to vzalloc
Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
81d66c70b5
commit
dc8a5c9935
2 changed files with 2 additions and 4 deletions
|
|
@ -335,10 +335,9 @@ cio_ignore_write(struct file *file, const char __user *user_buf,
|
|||
return -EINVAL;
|
||||
if (user_len > 65536)
|
||||
user_len = 65536;
|
||||
buf = vmalloc (user_len + 1); /* maybe better use the stack? */
|
||||
buf = vzalloc(user_len + 1); /* maybe better use the stack? */
|
||||
if (buf == NULL)
|
||||
return -ENOMEM;
|
||||
memset(buf, 0, user_len + 1);
|
||||
|
||||
if (strncpy_from_user (buf, user_buf, user_len) < 0) {
|
||||
rc = -EFAULT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue