If the peer device was already unbound, then do not attempt to modify it's resources, otherwise we will crash on dereferencing non-existing device.
Showing the changes to include/linux (1 of 6 files). Show all
Unified · Split
| @@ -90,6 +90,8 @@ struct mlx5_hairpin { · 89 unmodified lines | |||
| 90 | 90 | ||
| 91 | u32 *rqn; | 91 | u32 *rqn; |
| 92 | u32 *sqn; | 92 | u32 *sqn; |
| 93 | |||
| 94 | bool peer_gone; | ||
| 93 | }; | 95 | }; |
| 94 | 96 | ||
| 95 | struct mlx5_hairpin * | 97 | struct mlx5_hairpin * |