summaryrefslogtreecommitdiffstats
path: root/net/rds
diff options
context:
space:
mode:
authorSowmini Varadhan <sowmini.varadhan@oracle.com>2017-12-22 18:39:00 +0100
committerDavid S. Miller <davem@davemloft.net>2017-12-27 19:37:27 +0100
commitb319109396d6ddf1587a54e33f89fd3bea7c66db (patch)
treea0a0e5c2935fa86d50709e0f3a2afce50c3d4860 /net/rds
parentrds; Reset rs->rs_bound_addr in rds_add_bound() failure path (diff)
downloadlinux-b319109396d6ddf1587a54e33f89fd3bea7c66db.tar.xz
linux-b319109396d6ddf1587a54e33f89fd3bea7c66db.zip
rds: tcp: initialize t_tcp_detached to false
Commit f10b4cff98c6 ("rds: tcp: atomically purge entries from rds_tcp_conn_list during netns delete") adds the field t_tcp_detached, but this needs to be initialized explicitly to false. Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds')
-rw-r--r--net/rds/tcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rds/tcp.c b/net/rds/tcp.c
index 39f502d47969..a61a498187ce 100644
--- a/net/rds/tcp.c
+++ b/net/rds/tcp.c
@@ -290,6 +290,7 @@ static int rds_tcp_conn_alloc(struct rds_connection *conn, gfp_t gfp)
tc->t_cpath = &conn->c_path[i];
spin_lock_irq(&rds_tcp_conn_lock);
+ tc->t_tcp_node_detached = false;
list_add_tail(&tc->t_tcp_node, &rds_tcp_conn_list);
spin_unlock_irq(&rds_tcp_conn_lock);
rdsdebug("rds_conn_path [%d] tc %p\n", i,