aboutsummaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_state.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-06-14 18:28:09 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 16:57:46 +0100
commit089c075d88ac9407b8d7c5c8fc4b21c0d940bd82 (patch)
treec68e1a24d7813abe883702255a37dc704f2ea8fd /drivers/block/drbd/drbd_state.c
parent44e52cfaa22e44a0197b44cd72c3440bc2a6e1ed (diff)
downloadvexpress-lsk-089c075d88ac9407b8d7c5c8fc4b21c0d940bd82.tar.gz
drbd: Convert the generic netlink interface to accept connection endpoints
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_state.c')
-rw-r--r--drivers/block/drbd/drbd_state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_state.c b/drivers/block/drbd/drbd_state.c
index cd55f46d5c5..d978e4d98a1 100644
--- a/drivers/block/drbd/drbd_state.c
+++ b/drivers/block/drbd/drbd_state.c
@@ -1418,6 +1418,8 @@ static int w_after_conn_state_ch(struct drbd_work *w, int unused)
mutex_lock(&tconn->conf_update);
old_conf = tconn->net_conf;
+ tconn->my_addr_len = 0;
+ tconn->peer_addr_len = 0;
rcu_assign_pointer(tconn->net_conf, NULL);
conn_free_crypto(tconn);
mutex_unlock(&tconn->conf_update);