diff options
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/hypfs/hypfs_diag.c | 3 |
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) | |||
562 | void *base; | 562 | void *base; |
563 | 563 | ||
564 | buf_size = PAGE_SIZE * (diag204_buf_pages + 1) + sizeof(d204->hdr); | 564 | buf_size = PAGE_SIZE * (diag204_buf_pages + 1) + sizeof(d204->hdr); |
565 | base = vmalloc(buf_size); | 565 | base = vzalloc(buf_size); |
566 | if (!base) | 566 | if (!base) |
567 | return -ENOMEM; | 567 | return -ENOMEM; |
568 | memset(base, 0, buf_size); | ||
569 | d204 = page_align_ptr(base + sizeof(d204->hdr)) - sizeof(d204->hdr); | 568 | d204 = page_align_ptr(base + sizeof(d204->hdr)) - sizeof(d204->hdr); |
570 | rc = diag204_do_store(d204->buf, diag204_buf_pages); | 569 | rc = diag204_do_store(d204->buf, diag204_buf_pages); |
571 | if (rc) { | 570 | if (rc) { |