diff options
| author | Alexandre Ghiti <[email protected]> | 2024-11-12 11:34:22 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2024-11-12 15:34:27 +0000 |
| commit | 57f7c7dc78cd09622b12920d92b40c1ce11b234e (patch) | |
| tree | e74a1b39ace3f1c1562e31c0fbad36e2442ea313 /rust/helpers/mutex.c | |
| parent | Linux 6.12-rc6 (diff) | |
| download | kernel-57f7c7dc78cd09622b12920d92b40c1ce11b234e.tar.gz kernel-57f7c7dc78cd09622b12920d92b40c1ce11b234e.zip | |
drivers: perf: Fix wrong put_cpu() placement
Unfortunately, the wrong patch version was merged which places the
put_cpu() after enabling a static key, which is not safe as pointed by
Will [1], so move put_cpu() before to avoid this.
Fixes: 2840dadf0dde ("drivers: perf: Fix smp_processor_id() use in preemptible code")
Reported-by: Atish Patra <[email protected]>
Link: https://lore.kernel.org/all/20240827125335.GD4772@willie-the-truck/ [1]
Signed-off-by: Alexandre Ghiti <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
