]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ACPI / CPPC: signedness bug in register_pcc_channel()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 22 Oct 2015 19:52:59 +0000 (22:52 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 Oct 2015 03:44:17 +0000 (04:44 +0100)
commit32c0b2f606a4b71fc7b7cfa479cf47648854d9d9
treef5bac7688e5b1f3c24f09ac6b62bdfd21ba80b7c
parentad806ea66c7cdfa10152c58aa710c9c26ca0d159
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>
drivers/acpi/cppc_acpi.c