diff options
author | Maor Gottlieb <maorg@nvidia.com> | 2021-09-01 11:48:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-22 12:27:57 +0200 |
commit | c586bc31d5b9ae7ed202fc0dcaffbaaed77bde06 (patch) | |
tree | 8d26b29620685967b979b146332a71fc420c0f74 /scripts/clang-tools/gen_compile_commands.py | |
parent | 29a5af9112a279398c0716bd8d932c94c6a03b16 (diff) |
net/mlx5: Fix potential sleeping in atomic context
commit ee27e330a953595903979ffdb84926843595a9fe upstream.
Fixes the below flow of sleeping in atomic context by releasing
the RCU lock before calling to free_match_list.
build_match_list() <- disables preempt
-> free_match_list()
-> tree_put_node()
-> down_write_ref_node() <- take write lock
Fixes: 693c6883bbc4 ("net/mlx5: Add hash table for flow groups in flow table")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions