diff options
Diffstat (limited to 'fs/reiserfs/resize.c')
| -rw-r--r-- | fs/reiserfs/resize.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/reiserfs/resize.c b/fs/reiserfs/resize.c index 6052d323bc9a..8096c74c38ac 100644 --- a/fs/reiserfs/resize.c +++ b/fs/reiserfs/resize.c | |||
| @@ -120,7 +120,8 @@ int reiserfs_resize(struct super_block *s, unsigned long block_count_new) | |||
| 120 | * array of bitmap block pointers | 120 | * array of bitmap block pointers |
| 121 | */ | 121 | */ |
| 122 | bitmap = | 122 | bitmap = |
| 123 | vzalloc(sizeof(struct reiserfs_bitmap_info) * bmap_nr_new); | 123 | vzalloc(array_size(bmap_nr_new, |
| 124 | sizeof(struct reiserfs_bitmap_info))); | ||
| 124 | if (!bitmap) { | 125 | if (!bitmap) { |
| 125 | /* | 126 | /* |
| 126 | * Journal bitmaps are still supersized, but the | 127 | * Journal bitmaps are still supersized, but the |
