diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2020-08-10 15:59:41 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2020-09-21 17:22:24 -0700 |
commit | 6e8de0b6b4690ba7a685db33801bf7536bac674f (patch) | |
tree | 8215fad91a509cd45e1a3c9a0ea2cc94112b9e99 /net/tipc/socket.c | |
parent | 8f0bcd19b1da3f264223abea985b9462e85a3718 (diff) |
net/mlx5e: kTLS, Fix napi sync and possible use-after-free
Using synchronize_rcu() is sufficient to wait until running NAPI quits.
See similar upstream fix with detailed explanation:
("net/mlx5e: Use synchronize_rcu to sync with NAPI")
This change also fixes a possible use-after-free as the NAPI
might be already released at this stage.
Fixes: 0419d8c9d8f8 ("net/mlx5e: kTLS, Add kTLS RX resync support")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'net/tipc/socket.c')
0 files changed, 0 insertions, 0 deletions