Leon Romanovsky e677b72a06 RDMA/iwcm: Release resources if iw_cm module initialization fails
The failure during iw_cm module initialization partially left the system
with unreleased memory and other resources. Rewrite the module init/exit
routines in such way that netlink commands will be opened only after
successful initialization.

Fixes: b493d91d333e ("iwcm: common code for port mapper")
Link: https://lore.kernel.org/r/b01239f99cb1a3e6d2b0694c242d89e6410bcd93.1627048781.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-07-30 10:01:40 -03:00
..
2021-04-08 16:14:56 -03:00
2015-06-12 14:49:18 -04:00
2021-04-12 14:52:22 -03:00
2020-12-10 15:05:17 -04:00
2021-04-12 14:56:48 -03:00
2019-06-28 21:18:23 -03:00
2016-03-03 10:20:25 -05:00
2021-03-26 09:31:21 -03:00
2021-03-26 09:31:21 -03:00
2021-03-26 09:31:21 -03:00
2020-07-06 14:54:46 -03:00
2021-05-28 20:39:51 -03:00
2021-05-01 09:15:05 -07:00
2021-06-22 14:43:51 -03:00