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)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 28 Feb 2018 19:10:33 +0000 (12:10 -0700)
commit497158aa5f520db50452ef928c0f955cb42f2e77
tree1d650165443c500358b0c55b19ff6eebf1e5196c
parentc354dff00db8df80f271418d8392065e10ffffb6
RDMA/bnxt_re: Fix the ib_reg failure cleanup

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>
drivers/infiniband/hw/bnxt_re/main.c