RDMA/bnxt_re: Fix the ib_reg failure cleanup
authorSelvin Xavier <selvin.xavier@broadcom.com>
Mon, 26 Feb 2018 09:51:39 +0000 (01:51 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:08 +0000 (07:52 +0200)
commit62ee80d3b45b7328e6415e4477d845b96cb6668f
tree5b1c51ea5f2f428e743c9601f163d67f04690a65
parent2bce0d98b9d98b75484c2248b51f6194bdf7308e
RDMA/bnxt_re: Fix the ib_reg failure cleanup

[ Upstream commit 497158aa5f520db50452ef928c0f955cb42f2e77 ]

Release the netdev references in the cleanup path.  Invokes the cleanup
routines if bnxt_re_ib_reg fails.

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/bnxt_re/main.c