rds: ib: Fix missing call to rds_ib_dev_put in rds_ib_setup_qp
authorDag Moxnes <dag.moxnes@oracle.com>
Wed, 25 Apr 2018 11:22:01 +0000 (13:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Nov 2018 15:42:50 +0000 (07:42 -0800)
commit271b4a840228a810202d154354328b8e83a91846
tree00495ac246fe8f53fffe81c28e6d7e04b578cf57
parentc2c87f5bf2121cfd2337e75ab75dc384c6410226
rds: ib: Fix missing call to rds_ib_dev_put in rds_ib_setup_qp

[ Upstream commit 91a825290ca4eae88603bc811bf74a45f94a3f46 ]

The function rds_ib_setup_qp is calling rds_ib_get_client_data and
should correspondingly call rds_ib_dev_put. This call was lost in
the non-error path with the introduction of error handling done in
commit 3b12f73a5c29 ("rds: ib: add error handle")

Signed-off-by: Dag Moxnes <dag.moxnes@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/rds/ib_cm.c