summaryrefslogtreecommitdiffstats
path: root/arch/s390/hypfs
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-05-28 10:36:21 -0700
committerJiri Kosina <jkosina@suse.cz>2011-09-15 13:55:02 +0200
commitdc8a5c9935d8e63123fab0d0033f15819351d0bf (patch)
tree55c4f69ea8901602b798c66363ca596bf4f92fbf /arch/s390/hypfs
parent81d66c70b546e7be5d7e1f1ca9676fd17c5973af (diff)
downloadlinux-stable-dc8a5c9935d8e63123fab0d0033f15819351d0bf.tar.gz
linux-stable-dc8a5c9935d8e63123fab0d0033f15819351d0bf.tar.bz2
linux-stable-dc8a5c9935d8e63123fab0d0033f15819351d0bf.zip
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 'arch/s390/hypfs')
-rw-r--r--arch/s390/hypfs/hypfs_diag.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/hypfs/hypfs_diag.c b/arch/s390/hypfs/hypfs_diag.c
index 6023c6dc1fb7..74c8f5e76ce4 100644
--- a/arch/s390/hypfs/hypfs_diag.c
+++ b/arch/s390/hypfs/hypfs_diag.c
@@ -562,10 +562,9 @@ static int dbfs_d204_create(void **data, void **data_free_ptr, size_t *size)
void *base;
buf_size = PAGE_SIZE * (diag204_buf_pages + 1) + sizeof(d204->hdr);
- base = vmalloc(buf_size);
+ base = vzalloc(buf_size);
if (!base)
return -ENOMEM;
- memset(base, 0, buf_size);
d204 = page_align_ptr(base + sizeof(d204->hdr)) - sizeof(d204->hdr);
rc = diag204_do_store(d204->buf, diag204_buf_pages);
if (rc) {