aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
diff options
context:
space:
mode:
authorXiao Liang <[email protected]>2018-01-22 06:12:52 +0000
committerThomas Gleixner <[email protected]>2018-01-24 12:00:35 +0000
commit40d4071ce2d20840d224b4a77b5dc6f752c9ab15 (patch)
treee1dc74b4bedf8dadbbebc8180126238e5130ceaa /drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
parentMerge tag 'pci-v4.15-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff)
downloadkernel-40d4071ce2d20840d224b4a77b5dc6f752c9ab15.tar.gz
kernel-40d4071ce2d20840d224b4a77b5dc6f752c9ab15.zip
perf/x86/amd/power: Do not load AMD power module on !AMD platforms
The AMD power module can be loaded on non AMD platforms, but unload fails with the following Oops: BUG: unable to handle kernel NULL pointer dereference at (null) IP: __list_del_entry_valid+0x29/0x90 Call Trace: perf_pmu_unregister+0x25/0xf0 amd_power_pmu_exit+0x1c/0xd23 [power] SyS_delete_module+0x1a8/0x2b0 ? exit_to_usermode_loop+0x8f/0xb0 entry_SYSCALL_64_fastpath+0x20/0x83 Return -ENODEV instead of 0 from the module init function if the CPU does not match. Fixes: c7ab62bfbe0e ("perf/x86/amd/power: Add AMD accumulated power reporting mechanism") Signed-off-by: Xiao Liang <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_display.c')
0 files changed, 0 insertions, 0 deletions