Message ID | 20221013054947.1355884-1-pmanank200502@gmail.com |
---|---|
State | New |
Headers | show |
Series | ACPI: acpi_pcc.c: Fix unintentional integer overflow | expand |
diff --git a/drivers/acpi/acpi_pcc.c b/drivers/acpi/acpi_pcc.c index ee4ce5ba1fb2..b929d2e5c622 100644 --- a/drivers/acpi/acpi_pcc.c +++ b/drivers/acpi/acpi_pcc.c @@ -112,7 +112,7 @@ acpi_pcc_address_space_handler(u32 function, acpi_physical_address addr, * processor could be much slower to reply. So add an arbitrary * amount of wait on top of Nominal. */ - usecs_lat = PCC_CMD_WAIT_RETRIES_NUM * data->pcc_chan->latency; + usecs_lat = PCC_CMD_WAIT_RETRIES_NUM * ((u64) data->pcc_chan->latency); ret = wait_for_completion_timeout(&data->done, usecs_to_jiffies(usecs_lat)); if (ret == 0) {