Skip to contentSkip to conversation

rds: double unlock in rds_ib_cm_handle_connect()

PATCH Applied Dan Carpenter 2 participants 2 messages Sep 18, 2010 – Sep 19, 2010

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rds: double unlock in rds_ib_cm_handle_connect()

We unlock after we goto out.

net/rds/ib_cm.c +0 -1
index bc3dbc1..ee369d2 100644
@@ -521,7 +521,6 @@ int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
 	err = rds_ib_setup_qp(conn);
 	if (err) {
 		rds_ib_conn_error(conn, "rds_ib_setup_qp failed (%d)\n", err);
-		mutex_unlock(&conn->c_cm_lock);
 		goto out;
 	}