Commit e4522c0
RDMA/irdma: Add ipv4 check to irdma_find_listener()
Add ipv4 check to irdma_find_listener(). Otherwise the function
incorrectly finds and returns a listener with a different addr family for
the zero IP addr, if a listener with a zero IP addr and the same port as
the one searched for has already been created.
Fixes: 146b975 ("RDMA/irdma: Add connection manager")
Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Link: https://lore.kernel.org/r/20230315145231.931-5-shiraz.saleem@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>1 parent 8385a87 commit e4522c0
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1458 | 1458 | | |
1459 | 1459 | | |
1460 | 1460 | | |
| 1461 | + | |
1461 | 1462 | | |
1462 | 1463 | | |
1463 | 1464 | | |
1464 | 1465 | | |
1465 | 1466 | | |
1466 | | - | |
1467 | | - | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
1468 | 1470 | | |
1469 | 1471 | | |
1470 | 1472 | | |
| |||
1477 | 1479 | | |
1478 | 1480 | | |
1479 | 1481 | | |
1480 | | - | |
| 1482 | + | |
1481 | 1483 | | |
1482 | 1484 | | |
1483 | 1485 | | |
| |||
2902 | 2904 | | |
2903 | 2905 | | |
2904 | 2906 | | |
2905 | | - | |
2906 | | - | |
2907 | | - | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
2908 | 2911 | | |
2909 | 2912 | | |
2910 | 2913 | | |
| |||
3153 | 3156 | | |
3154 | 3157 | | |
3155 | 3158 | | |
| 3159 | + | |
3156 | 3160 | | |
3157 | 3161 | | |
3158 | 3162 | | |
| |||
0 commit comments