]> git.karo-electronics.de Git - linux-beck.git/commit
ACPI / CPPC: set an error code on probe error path
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 30 Nov 2016 19:22:54 +0000 (22:22 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 19:18:07 +0000 (20:18 +0100)
commita4e73cc229d8c2e7f75016e3f9e36455fb3c4aca
treeeced121803e1d886b0a9a1de7eccc27ee1d696b5
parent26991b28b47c4a730f08337de557fe4883c44cc2
ACPI / CPPC: set an error code on probe error path

commit 501634759d55a5b56967de6d9465acf02bbc3565 upstream.

We should return -EINVAL (instead of 0) if get_cpu_device() fails.

Fixes: 158c998ea44b (ACPI / CPPC: add sysfs support to compute delivered performance)
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/cppc_acpi.c