summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-09-18 13:42:59 +0000
committerDavid S. Miller <davem@davemloft.net>2010-09-19 11:59:44 -0700
commitf4fa7f3807d41b78056c6648b04bfadd737df21e (patch)
tree0fd804391277b64143f021bd6038c4c6186b3c57
parent9b9d2e00bfa592aceda7b43da76c670df61faa97 (diff)
rds: double unlock in rds_ib_cm_handle_connect()
We unlock after we goto out. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/rds/ib_cm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c
index bc3dbc1ba61f..ee369d201a65 100644
--- a/net/rds/ib_cm.c
+++ b/net/rds/ib_cm.c
@@ -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;
}