Commit 7221f58
RDMA/irdma: Return EINVAL for invalid arp index error
When rdma_connect() fails due to an invalid arp index, user space rdma core
reports ENOMEM which is confusing. Modify irdma_make_cm_node() to return the
correct error code.
Fixes: 146b975 ("RDMA/irdma: Add connection manager")
Signed-off-by: Tatyana Nikolova <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>1 parent 6f52370 commit 7221f58
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2241 | 2241 | | |
2242 | 2242 | | |
2243 | 2243 | | |
| 2244 | + | |
2244 | 2245 | | |
2245 | 2246 | | |
2246 | 2247 | | |
2247 | 2248 | | |
2248 | | - | |
| 2249 | + | |
2249 | 2250 | | |
2250 | 2251 | | |
2251 | 2252 | | |
| |||
2348 | 2349 | | |
2349 | 2350 | | |
2350 | 2351 | | |
2351 | | - | |
| 2352 | + | |
| 2353 | + | |
2352 | 2354 | | |
| 2355 | + | |
2353 | 2356 | | |
2354 | 2357 | | |
2355 | 2358 | | |
| |||
2360 | 2363 | | |
2361 | 2364 | | |
2362 | 2365 | | |
2363 | | - | |
| 2366 | + | |
2364 | 2367 | | |
2365 | 2368 | | |
2366 | 2369 | | |
| |||
3021 | 3024 | | |
3022 | 3025 | | |
3023 | 3026 | | |
3024 | | - | |
3025 | | - | |
| 3027 | + | |
| 3028 | + | |
3026 | 3029 | | |
3027 | 3030 | | |
3028 | 3031 | | |
| |||
3219 | 3222 | | |
3220 | 3223 | | |
3221 | 3224 | | |
3222 | | - | |
| 3225 | + | |
3223 | 3226 | | |
3224 | | - | |
| 3227 | + | |
3225 | 3228 | | |
3226 | 3229 | | |
3227 | 3230 | | |
| |||
0 commit comments