diff options
| author | Pei Xiao <xiaopei01@kylinos.cn> | 2024-12-30 10:16:55 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2024-12-31 07:12:21 +0300 |
| commit | dfa94ce54f4139c893b9c4ec17df6f7c6a7515d3 (patch) | |
| tree | 3fb221e3bfd77169e5af86a4af19775ad2c4deaa /rust/helpers/helpers.c | |
| parent | 654a3381e3b4df5ab1b87e21b5d9ffd979362cd1 (diff) | |
| download | linux-dfa94ce54f4139c893b9c4ec17df6f7c6a7515d3.tar.xz | |
bpf: Use refcount_t instead of atomic_t for mmap_count
Use an API that resembles more the actual use of mmap_count.
Found by cocci:
kernel/bpf/arena.c:245:6-25: WARNING: atomic_dec_and_test variation before object free at line 249.
Fixes: b90d77e5fd78 ("bpf: Fix remap of arena.")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202412292037.LXlYSHKl-lkp@intel.com/
Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Link: https://lore.kernel.org/r/6ecce439a6bc81adb85d5080908ea8959b792a50.1735542814.git.xiaopei01@kylinos.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
