]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rds: ib: add error handle
authorZhu Yanjun <yanjun.zhu@oracle.com>
Tue, 7 Mar 2017 07:48:36 +0000 (02:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Oct 2017 08:11:21 +0000 (10:11 +0200)
commit75a12b2fa80c2e4cc40a9f9305f95899850b7426
tree211d18dad2d425771bc42004fd7116ca8589c399
parent22126c602203f6c18ec71449d924db92014a6b28
rds: ib: add error handle

[ Upstream commit 3b12f73a5c2977153f28a224392fd4729b50d1dc ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/rds/ib_cm.c