IB/cm: Fix missing unlock on error in cm_init_qp_rtr_attr()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 16 Jan 2014 08:28:13 +0000 (16:28 +0800)
committerRoland Dreier <roland@purestorage.com>
Sun, 19 Jan 2014 23:14:04 +0000 (15:14 -0800)
commit990acea616e99355703b503c1e50fb9c7ddff6b9
tree8b76b0aa9cd9c2b4cd0fe637e7624ba92e829c76
parent2f85d24e604c1532723c4b5791816b533baed2c3
IB/cm: Fix missing unlock on error in cm_init_qp_rtr_attr()

Add the missing unlock before return from function cm_init_qp_rtr_attr()
in the error handling case.

Fixes: dd5f03beb4f7 ("IB/core: Ethernet L2 attributes in verbs/cm structures")
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/cm.c