diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2021-07-23 17:08:55 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-22 13:26:23 +0300 |
commit | fb42b9801e0ad772d1e19608ed86c754d0ba722f (patch) | |
tree | 551a9a58951670cb08c88e128348f0cc3a46ef1b /Documentation/admin-guide | |
parent | 7930b1f98dd884cfa54d2749e2c194fe8d2abe9b (diff) | |
download | linux-fb42b9801e0ad772d1e19608ed86c754d0ba722f.tar.xz |
RDMA/iwcm: Release resources if iw_cm module initialization fails
[ Upstream commit e677b72a0647249370f2635862bf0241c86f66ad ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation/admin-guide')
0 files changed, 0 insertions, 0 deletions