diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/squashfs/file_direct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/squashfs/file_direct.c b/fs/squashfs/file_direct.c index 62a0de6632e1..43e7a7eddac0 100644 --- a/fs/squashfs/file_direct.c +++ b/fs/squashfs/file_direct.c | |||
@@ -44,7 +44,7 @@ int squashfs_readpage_block(struct page *target_page, u64 block, int bsize) | |||
44 | 44 | ||
45 | pages = end_index - start_index + 1; | 45 | pages = end_index - start_index + 1; |
46 | 46 | ||
47 | page = kmalloc(sizeof(void *) * pages, GFP_KERNEL); | 47 | page = kmalloc_array(pages, sizeof(void *), GFP_KERNEL); |
48 | if (page == NULL) | 48 | if (page == NULL) |
49 | return res; | 49 | return res; |
50 | 50 | ||