Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196867
b: refs/heads/master
c: 2db4e42
h: refs/heads/master
i:
  196865: 3a53cb2
  196863: 85dcddb
v: v3
  • Loading branch information
Julia Lawall authored and Philipp Reisner committed May 18, 2010
1 parent a137d86 commit 4976325
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: 0c3f34516e8c5a1a0ba3585a7777d32bbbdf4ecb
refs/heads/master: 2db4e42eaceabec42f738f3895300632cd375e67
3 changes: 1 addition & 2 deletions trunk/drivers/block/drbd/drbd_nl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,13 +1196,12 @@ static int drbd_nl_net_conf(struct drbd_conf *mdev, struct drbd_nl_cfg_req *nlp,
}

/* allocation not in the IO path, cqueue thread context */
new_conf = kmalloc(sizeof(struct net_conf), GFP_KERNEL);
new_conf = kzalloc(sizeof(struct net_conf), GFP_KERNEL);
if (!new_conf) {
retcode = ERR_NOMEM;
goto fail;
}

memset(new_conf, 0, sizeof(struct net_conf));
new_conf->timeout = DRBD_TIMEOUT_DEF;
new_conf->try_connect_int = DRBD_CONNECT_INT_DEF;
new_conf->ping_int = DRBD_PING_INT_DEF;
Expand Down

0 comments on commit 4976325

Please sign in to comment.