Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195747
b: refs/heads/master
c: 316ce2b
h: refs/heads/master
i:
  195745: 7a5dbb0
  195743: 3de9852
v: v3
  • Loading branch information
Julia Lawall authored and Joel Becker committed May 18, 2010
1 parent 61ef6c8 commit 32b90d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3914ed0cec6532ab4feb202424fc95ad05024497
refs/heads/master: 316ce2ba8e74a7bb9153b9f93adc883cb1ceb9fd
3 changes: 1 addition & 2 deletions trunk/fs/ocfs2/dlm/dlmdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@ static struct dlm_ctxt *dlm_alloc_ctxt(const char *domain,
goto leave;
}

dlm->name = kmalloc(strlen(domain) + 1, GFP_KERNEL);
dlm->name = kstrdup(domain, GFP_KERNEL);
if (dlm->name == NULL) {
mlog_errno(-ENOMEM);
kfree(dlm);
Expand Down Expand Up @@ -1557,7 +1557,6 @@ static struct dlm_ctxt *dlm_alloc_ctxt(const char *domain,
for (i = 0; i < DLM_HASH_BUCKETS; i++)
INIT_HLIST_HEAD(dlm_master_hash(dlm, i));

strcpy(dlm->name, domain);
dlm->key = key;
dlm->node_num = o2nm_this_node();

Expand Down

0 comments on commit 32b90d6

Please sign in to comment.