]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdefa140726bbb301ec14c41b2abf1d57bdd42331
treee80e5d6f57fbc373c3cce779a6d7e719c52c8ad1
parentda60f95e1b30a6d584228950d835044fc9ebdb61
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