Repository navigation
Commit fe2a1cd
RDMA/iwcm: Release resources if iw_cm module initialization fails
[ Upstream commit e677b72 ]
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: b493d91 ("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>1 parent b824bae commit fe2a1cd
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1187 | 1187 | | |
1188 | 1188 | | |
1189 | 1189 | | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
| 1190 | + | |
| 1191 | + | |
1193 | 1192 | | |
1194 | 1193 | | |
1195 | | - | |
| 1194 | + | |
1196 | 1195 | | |
1197 | 1196 | | |
1198 | 1197 | | |
1199 | 1198 | | |
1200 | 1199 | | |
1201 | | - | |
1202 | | - | |
| 1200 | + | |
1203 | 1201 | | |
1204 | 1202 | | |
| 1203 | + | |
1205 | 1204 | | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
1206 | 1211 | | |
1207 | 1212 | | |
1208 | 1213 | | |
1209 | 1214 | | |
| 1215 | + | |
1210 | 1216 | | |
1211 | 1217 | | |
1212 | | - | |
1213 | 1218 | | |
1214 | 1219 | | |
1215 | 1220 | | |
| |||
0 commit comments