[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJZ5v0jyt5fd8v9O8U9t=TXdMgKQAX9Si0j0yN+62q6HxL2Vow@mail.gmail.com>
Date: Wed, 26 Oct 2022 13:34:43 +0200
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: "lihuisong (C)" <lihuisong@...wei.com>,
Manank Patel <pmanank200502@...il.com>
Cc: lenb@...nel.org, linux-acpi@...r.kernel.org,
linux-kernel@...r.kernel.org, Sudeep Holla <sudeep.holla@....com>
Subject: Re: [PATCH v2] "ACPI: PCC: Fix unintentional integer overflow"
On Tue, Oct 18, 2022 at 3:13 AM lihuisong (C) <lihuisong@...wei.com> wrote:
>
>
> 在 2022/10/18 2:43, Manank Patel 写道:
> > Fixed unintentional u32 overflow by changing PCC_CMD_WAIT_RETRIES_NUM to 500ULL
> >
> > Fixes: 91cefefb6991 ("ACPI: PCC: replace wait_for_completion()")
> >
> > Signed-off-by: Manank Patel <pmanank200502@...il.com>
> > Acked-by: Sudeep Holla <sudeep.holla@....com>
> >
> > ---
> > Thank you so much @sudeep for your clarifications!
> >
> > Changelog:
> > v1->v2:
> > Change the macro itself to ULL instead of typecasting in the
> > code
> >
> > drivers/acpi/acpi_pcc.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/acpi/acpi_pcc.c b/drivers/acpi/acpi_pcc.c
> > index ee4ce5ba1fb2..3e252be047b8 100644
> > --- a/drivers/acpi/acpi_pcc.c
> > +++ b/drivers/acpi/acpi_pcc.c
> > @@ -27,7 +27,7 @@
> > * Arbitrary retries in case the remote processor is slow to respond
> > * to PCC commands
> > */
> > -#define PCC_CMD_WAIT_RETRIES_NUM 500
> > +#define PCC_CMD_WAIT_RETRIES_NUM 500ULL
> >
> > struct pcc_data {
> > struct pcc_mbox_chan *pcc_chan;
>
> Acked-by: Huisong Li <lihuisong@...wei.com>
Applied as 6.1-rc material, thanks!
Powered by blists - more mailing lists