diff options
author | Joe Perches <joe@perches.com> | 2011-05-28 13:36:21 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 07:55:02 -0400 |
commit | dc8a5c9935d8e63123fab0d0033f15819351d0bf (patch) | |
tree | 55c4f69ea8901602b798c66363ca596bf4f92fbf /drivers/s390 | |
parent | 81d66c70b546e7be5d7e1f1ca9676fd17c5973af (diff) |
s390: Convert vmalloc/memset to vzalloc
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/cio/blacklist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/cio/blacklist.c b/drivers/s390/cio/blacklist.c index 76058a5166ed..08c66035dd19 100644 --- a/drivers/s390/cio/blacklist.c +++ b/drivers/s390/cio/blacklist.c | |||
@@ -335,10 +335,9 @@ cio_ignore_write(struct file *file, const char __user *user_buf, | |||
335 | return -EINVAL; | 335 | return -EINVAL; |
336 | if (user_len > 65536) | 336 | if (user_len > 65536) |
337 | user_len = 65536; | 337 | user_len = 65536; |
338 | buf = vmalloc (user_len + 1); /* maybe better use the stack? */ | 338 | buf = vzalloc(user_len + 1); /* maybe better use the stack? */ |
339 | if (buf == NULL) | 339 | if (buf == NULL) |
340 | return -ENOMEM; | 340 | return -ENOMEM; |
341 | memset(buf, 0, user_len + 1); | ||
342 | 341 | ||
343 | if (strncpy_from_user (buf, user_buf, user_len) < 0) { | 342 | if (strncpy_from_user (buf, user_buf, user_len) < 0) { |
344 | rc = -EFAULT; | 343 | rc = -EFAULT; |