diff options
Diffstat (limited to 'fs/ocfs2/vote.c')
-rw-r--r-- | fs/ocfs2/vote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/vote.c b/fs/ocfs2/vote.c index 0315a8b61ed6..0afd8b9af70f 100644 --- a/fs/ocfs2/vote.c +++ b/fs/ocfs2/vote.c | |||
@@ -479,7 +479,7 @@ static struct ocfs2_net_wait_ctxt *ocfs2_new_net_wait_ctxt(unsigned int response | |||
479 | { | 479 | { |
480 | struct ocfs2_net_wait_ctxt *w; | 480 | struct ocfs2_net_wait_ctxt *w; |
481 | 481 | ||
482 | w = kcalloc(1, sizeof(*w), GFP_NOFS); | 482 | w = kzalloc(sizeof(*w), GFP_NOFS); |
483 | if (!w) { | 483 | if (!w) { |
484 | mlog_errno(-ENOMEM); | 484 | mlog_errno(-ENOMEM); |
485 | goto bail; | 485 | goto bail; |
@@ -642,7 +642,7 @@ static struct ocfs2_vote_msg * ocfs2_new_vote_request(struct ocfs2_super *osb, | |||
642 | 642 | ||
643 | BUG_ON(!ocfs2_is_valid_vote_request(type)); | 643 | BUG_ON(!ocfs2_is_valid_vote_request(type)); |
644 | 644 | ||
645 | request = kcalloc(1, sizeof(*request), GFP_NOFS); | 645 | request = kzalloc(sizeof(*request), GFP_NOFS); |
646 | if (!request) { | 646 | if (!request) { |
647 | mlog_errno(-ENOMEM); | 647 | mlog_errno(-ENOMEM); |
648 | } else { | 648 | } else { |