Skip to content

Commit 8338b74

Browse files
manank20rafaeljw
authored andcommitted
ACPI: PCC: Fix unintentional integer overflow
Fix an unintentional u32 overflow by changing PCC_CMD_WAIT_RETRIES_NUM to 500ULL. Fixes: 91cefef ("ACPI: PCC: replace wait_for_completion()") Signed-off-by: Manank Patel <[email protected]> Acked-by: Sudeep Holla <[email protected]> Acked-by: Huisong Li <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 247f34f commit 8338b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/acpi_pcc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* Arbitrary retries in case the remote processor is slow to respond
2828
* to PCC commands
2929
*/
30-
#define PCC_CMD_WAIT_RETRIES_NUM 500
30+
#define PCC_CMD_WAIT_RETRIES_NUM 500ULL
3131

3232
struct pcc_data {
3333
struct pcc_mbox_chan *pcc_chan;

0 commit comments

Comments
 (0)