Files
linux/drivers/infiniband/core
Leon Romanovsky fe2a1cd622 RDMA/iwcm: Release resources if iw_cm module initialization fails
[ Upstream commit e677b72a06 ]

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: b493d91d33 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-18 13:40:11 +02:00
..
2021-04-14 08:42:12 +02:00
2015-06-12 14:49:18 -04:00
2020-01-25 15:11:37 -04:00
2021-01-09 13:46:24 +01:00
2018-12-12 07:40:16 -07:00
2016-03-03 10:20:25 -05:00
2021-01-09 13:46:24 +01:00
2018-12-12 07:40:16 -07:00
2020-07-06 14:54:46 -03:00