Loading
cpufreq/amd-pstate: Return -ENOMEM on failure to allocate profile_name
Failure to allocate profile name will return -EINVAL from platform_profile_register() while in fact, it is a failure to allocate memory for the profile_name string. Return -ENOMEM when kasprintf() fails to allocate profile_name string. Fixes: e30ca6dd ("cpufreq/amd-pstate: Add dynamic energy performance preference") Reviewed-by:Mario Limonciello <mario.limonciello@amd.com> Signed-off-by:
K Prateek Nayak <kprateek.nayak@amd.com> Link: https://lore.kernel.org/r/20260508051748.10484-3-kprateek.nayak@amd.com Signed-off-by:
Mario Limonciello (AMD) <superm1@kernel.org>