diff options
author | Thomas Gleixner <[email protected]> | 2021-08-15 23:27:37 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2021-08-17 16:38:40 +0200 |
commit | d8bbd97ad0b99a9394f2cd8410b884c48e218cf0 (patch) | |
tree | 3da8fb6de5285f5adc308571ed3188e4f8b9d04d /tools/perf/scripts/python/sched-migration.py | |
parent | c87866ede44ad7da6b296d732221dc34ce1b154d (diff) |
locking/local_lock: Add missing owner initialization
If CONFIG_DEBUG_LOCK_ALLOC=y is enabled then local_lock_t has an 'owner'
member which is checked for consistency, but nothing initialized it to
zero explicitly.
The static initializer does so implicit, and the run time allocated per CPU
storage is usually zero initialized as well, but relying on that is not
really good practice.
Fixes: 91710728d172 ("locking: Introduce local_lock()")
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions