Commit b44a2b53 authored by Alexander Shishkin's avatar Alexander Shishkin Committed by Ingo Molnar
Browse files

perf/x86/intel/pt: Fix a refactoring bug

Commit 066450be

 ("perf/x86/intel/pt: Clean up the control flow
in pt_pmu_hw_init()") changed attribute initialization so that
only the first attribute gets initialized using
sysfs_attr_init(), which upsets lockdep.

This patch fixes the glitch so that all allocated attributes are
properly initialized thus fixing the lockdep warning reported by
Tvrtko and Imre.
Reported-by: default avatarTvrtko Ursulin <>
Reported-by: default avatarImre Deak <>
Signed-off-by: default avatarAlexander Shishkin <>
Cc: <>
Cc: Andrew Morton <>
Cc: H. Peter Anvin <>
Cc: Linus Torvalds <>
Cc: Peter Zijlstra <>
Cc: Thomas Gleixner <>
Signed-off-by: default avatarIngo Molnar <>
parent 68ab7476
......@@ -151,7 +151,7 @@ static int __init pt_pmu_hw_init(void)
de_attr-> = pt_caps[i].name;
de_attr->attr.attr.mode = S_IRUGO;
de_attr-> = pt_cap_show;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment