]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61cbae9248522fb6e53129065f7f917132c99b41
treedc78465b72a0aeaed26e1fdb4e7baac6b9c92db5
parentb944b8b7f14e7d585b24872a6c45378bd01643e1
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