diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/adfs/dir_fplus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/adfs/dir_fplus.c b/fs/adfs/dir_fplus.c index 7673c1fdbfc0..c52f1ce15f1e 100644 --- a/fs/adfs/dir_fplus.c +++ b/fs/adfs/dir_fplus.c | |||
@@ -58,7 +58,7 @@ adfs_fplus_read(struct super_block *sb, unsigned int id, unsigned int sz, struct | |||
58 | if (size > ARRAY_SIZE(dir->bh)) { | 58 | if (size > ARRAY_SIZE(dir->bh)) { |
59 | /* this directory is too big for fixed bh set, must allocate */ | 59 | /* this directory is too big for fixed bh set, must allocate */ |
60 | struct buffer_head **bh_fplus = | 60 | struct buffer_head **bh_fplus = |
61 | kzalloc(size * sizeof(struct buffer_head *), | 61 | kcalloc(size, sizeof(struct buffer_head *), |
62 | GFP_KERNEL); | 62 | GFP_KERNEL); |
63 | if (!bh_fplus) { | 63 | if (!bh_fplus) { |
64 | adfs_error(sb, "not enough memory for" | 64 | adfs_error(sb, "not enough memory for" |