]> www.infradead.org Git - users/dwmw2/linux.git/commit
perf/x86/amd/uncore: Pass through error code for initialization failures, instead...
authorSandipan Das <sandipan.das@amd.com>
Mon, 16 Oct 2023 06:07:43 +0000 (11:37 +0530)
committerIngo Molnar <mingo@kernel.org>
Mon, 16 Oct 2023 09:42:01 +0000 (11:42 +0200)
commit744940f1921c8feb90e3c4bcc1e153fdd6e10fe2
treed5e34052ab3c113f2c2af81ef31147a1bedc8fd9
parent7543365739a4ff61d40ad53ab68c17d2e7dfb0c9
perf/x86/amd/uncore: Pass through error code for initialization failures, instead of -ENODEV

Pass through the appropriate error code when the registration of hotplug
callbacks fail during initialization, instead of returning a blanket -ENODEV.

[ mingo: Updated the changelog. ]

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20231016060743.332051-1-sandipan.das@amd.com
arch/x86/events/amd/uncore.c