staging: lustre: llite: Use kcalloc not kzalloc with mult
[linux-2.6-block.git] / drivers / staging / lustre / lustre / llite / dir.c
index 9e8bfdcfe5a4a43d40c17c9c03b0dc4a672236b3..a07e0fe062077edef59c02aa3e0f110ad8ccc5d2 100644 (file)
@@ -163,7 +163,7 @@ static int ll_dir_filler(void *_hash, struct page *page0)
 
        LASSERT(max_pages > 0 && max_pages <= MD_MAX_BRW_PAGES);
 
-       page_pool = kzalloc(sizeof(page) * max_pages, GFP_NOFS);
+       page_pool = kcalloc(max_pages, sizeof(page), GFP_NOFS);
        if (page_pool) {
                page_pool[0] = page0;
        } else {