RDS: TCP: Synchronize accept() and connect() paths on t_conn_lock.
[deliverable/linux.git] / net / rds / tcp.c
index 9134544941c22fc000ca7e6702c7d9ec0aab9e5a..86187dad14403100ff6199ee79beed5262de818f 100644 (file)
@@ -216,6 +216,7 @@ static int rds_tcp_conn_alloc(struct rds_connection *conn, gfp_t gfp)
        if (!tc)
                return -ENOMEM;
 
+       mutex_init(&tc->t_conn_lock);
        tc->t_sock = NULL;
        tc->t_tinc = NULL;
        tc->t_tinc_hdr_rem = sizeof(struct rds_header);
This page took 0.023784 seconds and 5 git commands to generate.