diff options
author | 2023-05-02 13:36:42 +0300 | |
---|---|---|
committer | 2023-05-22 22:38:06 -0700 | |
commit | 1f893f57a3bf9fe1f4bcb25b55aea7f7f9712fe7 (patch) | |
tree | 9859e423a6ab816c5cfae39588c74ffeea8e8737 /scripts/generate_rust_analyzer.py | |
parent | net/mlx5: Devcom, fix error flow in mlx5_devcom_register_device (diff) | |
download | wireguard-linux-1f893f57a3bf9fe1f4bcb25b55aea7f7f9712fe7.tar.xz wireguard-linux-1f893f57a3bf9fe1f4bcb25b55aea7f7f9712fe7.zip |
net/mlx5: Devcom, serialize devcom registration
From one hand, mlx5 driver is allowing to probe PFs in parallel.
From the other hand, devcom, which is a share resource between PFs, is
registered without any lock. This might resulted in memory problems.
Hence, use the global mlx5_dev_list_lock in order to serialize devcom
registration.
Fixes: fadd59fc50d0 ("net/mlx5: Introduce inter-device communication mechanism")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions