diff options
Diffstat (limited to 'fs/gfs2/lock_dlm.c')
-rw-r--r-- | fs/gfs2/lock_dlm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/lock_dlm.c b/fs/gfs2/lock_dlm.c index 992ca5b1e045..641383a9c1bb 100644 --- a/fs/gfs2/lock_dlm.c +++ b/fs/gfs2/lock_dlm.c | |||
@@ -1030,8 +1030,8 @@ static int set_recover_size(struct gfs2_sbd *sdp, struct dlm_slot *slots, | |||
1030 | 1030 | ||
1031 | new_size = old_size + RECOVER_SIZE_INC; | 1031 | new_size = old_size + RECOVER_SIZE_INC; |
1032 | 1032 | ||
1033 | submit = kzalloc(new_size * sizeof(uint32_t), GFP_NOFS); | 1033 | submit = kcalloc(new_size, sizeof(uint32_t), GFP_NOFS); |
1034 | result = kzalloc(new_size * sizeof(uint32_t), GFP_NOFS); | 1034 | result = kcalloc(new_size, sizeof(uint32_t), GFP_NOFS); |
1035 | if (!submit || !result) { | 1035 | if (!submit || !result) { |
1036 | kfree(submit); | 1036 | kfree(submit); |
1037 | kfree(result); | 1037 | kfree(result); |