Skip to content

Commit b319109

Browse files
sowminivdavem330
authored andcommitted
rds: tcp: initialize t_tcp_detached to false
Commit f10b4cf ("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 <[email protected]> Acked-by: Santosh Shilimkar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7ae0c64 commit b319109

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/rds/tcp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ static int rds_tcp_conn_alloc(struct rds_connection *conn, gfp_t gfp)
290290
tc->t_cpath = &conn->c_path[i];
291291

292292
spin_lock_irq(&rds_tcp_conn_lock);
293+
tc->t_tcp_node_detached = false;
293294
list_add_tail(&tc->t_tcp_node, &rds_tcp_conn_list);
294295
spin_unlock_irq(&rds_tcp_conn_lock);
295296
rdsdebug("rds_conn_path [%d] tc %p\n", i,

0 commit comments

Comments
 (0)