X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=arch%2Fs390%2Fhypfs%2Fhypfs_diag.c;fp=arch%2Fs390%2Fhypfs%2Fhypfs_diag.c;h=a2945b289a2928b5fd94b2ad0a85a93920423ed7;hb=42bc47b35320e0e587a88e437e18f80f9c5bcbb2;hp=be8cc53204b5088425af0f79d23bff276bc0b1c8;hpb=a86854d0c599b3202307abceb68feee4d7061578;p=sfrench%2Fcifs-2.6.git diff --git a/arch/s390/hypfs/hypfs_diag.c b/arch/s390/hypfs/hypfs_diag.c index be8cc53204b5..a2945b289a29 100644 --- a/arch/s390/hypfs/hypfs_diag.c +++ b/arch/s390/hypfs/hypfs_diag.c @@ -239,7 +239,7 @@ static void *page_align_ptr(void *ptr) static void *diag204_alloc_vbuf(int pages) { /* The buffer has to be page aligned! */ - diag204_buf_vmalloc = vmalloc(PAGE_SIZE * (pages + 1)); + diag204_buf_vmalloc = vmalloc(array_size(PAGE_SIZE, (pages + 1))); if (!diag204_buf_vmalloc) return ERR_PTR(-ENOMEM); diag204_buf = page_align_ptr(diag204_buf_vmalloc);