Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | From | Joe Perches <> | Subject | [PATCH 04/49] arch/s390: Use vzalloc | Date | Thu, 4 Nov 2010 20:07:28 -0700 |
| |
Signed-off-by: Joe Perches <joe@perches.com> --- 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 cd4a81b..1b1acef 100644 --- a/arch/s390/hypfs/hypfs_diag.c +++ b/arch/s390/hypfs/hypfs_diag.c @@ -570,12 +570,11 @@ static int dbfs_d204_open(struct inode *inode, struct file *file) if (!data) return -ENOMEM; buf_size = PAGE_SIZE * (diag204_buf_pages + 1) + sizeof(d204->hdr); - data->base = vmalloc(buf_size); + data->base = vzalloc(buf_size); if (!data->base) { rc = -ENOMEM; goto fail_kfree_data; } - memset(data->base, 0, buf_size); d204 = page_align_ptr(data->base + sizeof(d204->hdr)) - sizeof(d204->hdr); rc = diag204_do_store(&d204->buf, diag204_buf_pages); -- 1.7.3.1.g432b3.dirty
| ![\](/images/icornerr.gif) |