aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/ib_send.c
diff options
context:
space:
mode:
authorZach Brown <zach.brown@oracle.com>2010-05-24 13:14:59 -0700
committerAndy Grover <andy.grover@oracle.com>2010-09-08 18:15:15 -0700
commita46ca94e7fb2c93a59e08b42fd77d8c478fda5fc (patch)
tree2c7e4be2d85d55c0fc69d60c18504d8eec4acfe2 /net/rds/ib_send.c
parentrds: Fix reference counting on the for xmit_atomic and xmit_rdma (diff)
downloadlinux-dev-a46ca94e7fb2c93a59e08b42fd77d8c478fda5fc.tar.xz
linux-dev-a46ca94e7fb2c93a59e08b42fd77d8c478fda5fc.zip
RDS/IB: rds_ib_cm_handle_connect() forgot to unlock c_cm_lock
rds_ib_cm_handle_connect() could return without unlocking the c_conn_lock if rds_setup_qp() failed. Rather than adding another imbalanced mutex_unlock() to this error path we only unlock the mutex once as we exit the function, reducing the likelyhood of making this same mistake in the future. We remove the previous mulitple return sites, leaving one unambigious return path. Signed-off-by: Zach Brown <zach.brown@oracle.com>
Diffstat (limited to 'net/rds/ib_send.c')
0 files changed, 0 insertions, 0 deletions