rds: ib: add error handle
authorZhu Yanjun <yanjun.zhu@oracle.com>
Tue, 7 Mar 2017 07:48:36 +0000 (02:48 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Mar 2017 21:09:18 +0000 (13:09 -0800)
commit3b12f73a5c2977153f28a224392fd4729b50d1dc
treedc78465b72a0aeaed26e1fdb4e7baac6b9c92db5
parent67e303e0c7683957eb4e530453705a43a6d4f966
rds: ib: add error handle

In the function rds_ib_setup_qp, the error handle is missing. When some
error occurs, it is possible that memory leak occurs. As such, error
handle is added.

Cc: Joe Jin <joe.jin@oracle.com>
Reviewed-by: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: Guanglei Li <guanglei.li@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/ib_cm.c