]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/gfs2/quota.c
Merge branch 'for-4.8/core' of git://git.kernel.dk/linux-block
[karo-tx-linux.git] / fs / gfs2 / quota.c
index 62a68234dfff05a009e5d91d810b103973f67f5e..77930ca25303d9c1e040de629ff10bf449574420 100644 (file)
@@ -883,7 +883,7 @@ static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda)
        gfs2_write_calc_reserv(ip, sizeof(struct gfs2_quota),
                              &data_blocks, &ind_blocks);
 
-       ghs = kcalloc(num_qd, sizeof(struct gfs2_holder), GFP_NOFS);
+       ghs = kmalloc(num_qd * sizeof(struct gfs2_holder), GFP_NOFS);
        if (!ghs)
                return -ENOMEM;