]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/s390/kernel/sthyi.c
treewide: Use array_size() in vmalloc()
[linux.git] / arch / s390 / kernel / sthyi.c
index 80b862e9c53c6b108e611935ab8dd7c9b794ff13..0859cde36f7520616e62df133c2f88df69a47e27 100644 (file)
@@ -315,7 +315,7 @@ static void fill_diag(struct sthyi_sctns *sctns)
        if (pages <= 0)
                return;
 
-       diag204_buf = vmalloc(PAGE_SIZE * pages);
+       diag204_buf = vmalloc(array_size(pages, PAGE_SIZE));
        if (!diag204_buf)
                return;