diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-10-22 15:52:59 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-10-25 23:44:17 -0400 |
commit | 32c0b2f606a4b71fc7b7cfa479cf47648854d9d9 (patch) | |
tree | f5bac7688e5b1f3c24f09ac6b62bdfd21ba80b7c | |
parent | ad806ea66c7cdfa10152c58aa710c9c26ca0d159 (diff) |
ACPI / CPPC: signedness bug in register_pcc_channel()
The "pcc_subspace_idx" is -1 if it hasn't been initialized yet. We need
it to be signed.
Fixes: 337aadff8e45 (ACPI: Introduce CPU performance controls using CPPC)
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Ashwin Chaugule <ashwin.chaugule@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/cppc_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/cppc_acpi.c b/drivers/acpi/cppc_acpi.c index 0bbf84bdcdc4..2ed55161bca5 100644 --- a/drivers/acpi/cppc_acpi.c +++ b/drivers/acpi/cppc_acpi.c | |||
@@ -302,7 +302,7 @@ err_ret: | |||
302 | } | 302 | } |
303 | EXPORT_SYMBOL_GPL(acpi_get_psd_map); | 303 | EXPORT_SYMBOL_GPL(acpi_get_psd_map); |
304 | 304 | ||
305 | static int register_pcc_channel(unsigned pcc_subspace_idx) | 305 | static int register_pcc_channel(int pcc_subspace_idx) |
306 | { | 306 | { |
307 | struct acpi_pcct_subspace *cppc_ss; | 307 | struct acpi_pcct_subspace *cppc_ss; |
308 | unsigned int len; | 308 | unsigned int len; |