projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Fix numerous kcalloc() calls, convert to kzalloc()
[deliverable/linux.git]
/
fs
/
ocfs2
/
dlm
/
dlmdomain.c
diff --git
a/fs/ocfs2/dlm/dlmdomain.c
b/fs/ocfs2/dlm/dlmdomain.c
index 420a375a3949826b5b90e4007cdb0807b9f9b966..f0b25f2dd205317d51b3508a6b48cc41c184d0ac 100644
(file)
--- a/
fs/ocfs2/dlm/dlmdomain.c
+++ b/
fs/ocfs2/dlm/dlmdomain.c
@@
-920,7
+920,7
@@
static int dlm_try_to_join_domain(struct dlm_ctxt *dlm)
mlog_entry("%p", dlm);
mlog_entry("%p", dlm);
- ctxt = k
calloc(1,
sizeof(*ctxt), GFP_KERNEL);
+ ctxt = k
zalloc(
sizeof(*ctxt), GFP_KERNEL);
if (!ctxt) {
status = -ENOMEM;
mlog_errno(status);
if (!ctxt) {
status = -ENOMEM;
mlog_errno(status);
@@
-1223,7
+1223,7
@@
static struct dlm_ctxt *dlm_alloc_ctxt(const char *domain,
int i;
struct dlm_ctxt *dlm = NULL;
int i;
struct dlm_ctxt *dlm = NULL;
- dlm = k
calloc(1,
sizeof(*dlm), GFP_KERNEL);
+ dlm = k
zalloc(
sizeof(*dlm), GFP_KERNEL);
if (!dlm) {
mlog_errno(-ENOMEM);
goto leave;
if (!dlm) {
mlog_errno(-ENOMEM);
goto leave;
This page took
0.03769 seconds
and
5
git commands to generate.