RDMA/mlx5: Don't leak UARs in case of free fails
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 27 Jun 2018 07:44:24 +0000 (10:44 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 29 Jun 2018 17:45:50 +0000 (11:45 -0600)
commit151779996597af671e14a6838589d99fa09ffc6d
treee80e5d6f57fbc373c3cce779a6d7e719c52c8ad1
parent4e1077f720f5fb54a295c8c2b5f73c09aac75fd9
RDMA/mlx5: Don't leak UARs in case of free fails

The failure in releasing one UAR doesn't mean that we can't continue to
release rest of system pages, so don't return too early.

As part of cleanup, there is no need to print warning if
mlx5_cmd_free_uar() fails because such warning will be printed as part of
mlx5_cmd_exec().

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c