aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorJames Morse <[email protected]>2023-11-24 09:38:53 +0000
committerIngo Molnar <[email protected]>2023-11-24 12:54:31 +0000
commit5bfa0e45e9e7212b87fe1564ab45f146c7d56e5f (patch)
tree424041595d5084686305166014324f1eb0f1a68d /net/unix/unix_bpf.c
parentx86/barrier: Do not serialize MSR accesses on AMD (diff)
downloadkernel-5bfa0e45e9e7212b87fe1564ab45f146c7d56e5f.tar.gz
kernel-5bfa0e45e9e7212b87fe1564ab45f146c7d56e5f.zip
x86/cpu/intel_epb: Don't rely on link order
intel_epb_init() is called as a subsys_initcall() to register cpuhp callbacks. The callbacks make use of get_cpu_device() which will return NULL unless register_cpu() has been called. register_cpu() is called from topology_init(), which is also a subsys_initcall(). This is fragile. Moving the register_cpu() to a different subsys_initcall() leads to a NULL dereference during boot. Make intel_epb_init() a late_initcall(), user-space can't provide a policy before this point anyway. Signed-off-by: James Morse <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Gavin Shan <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions