lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJZ5v0iY9CQPRWub_Mk3LyZX_41Y_L4Gjm302X=GjcnhRiu1vw@mail.gmail.com>
Date: Tue, 30 Apr 2024 12:56:38 +0200
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: Viresh Kumar <viresh.kumar@...aro.org>, Joshua Yeong <joshua.yeong@...rfivetech.com>
Cc: linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: cpufreq: Fix printing large cpu and cpufreq number

On Mon, Apr 29, 2024 at 5:21 AM Viresh Kumar <viresh.kumar@...aro.org> wrote:
>
> On 25-04-24, 19:00, Joshua Yeong wrote:
> > Fix printing negative number when CPU frequency
> > with large number.
> >
> > Signed-off-by: Joshua Yeong <joshua.yeong@...rfivetech.com>
> > ---
> >  drivers/cpufreq/freq_table.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c
> > index c17dc51a5a02..9b9568023f3c 100644
> > --- a/drivers/cpufreq/freq_table.c
> > +++ b/drivers/cpufreq/freq_table.c
> > @@ -194,7 +194,7 @@ int cpufreq_table_index_unsorted(struct cpufreq_policy *policy,
> >       }
> >       if (optimal.driver_data > i) {
> >               if (suboptimal.driver_data > i) {
> > -                     WARN(1, "Invalid frequency table: %d\n", policy->cpu);
> > +                     WARN(1, "Invalid frequency table: %u\n", policy->cpu);
> >                       return 0;
> >               }
> >
> > @@ -254,7 +254,7 @@ static ssize_t show_available_freqs(struct cpufreq_policy *policy, char *buf,
> >               if (show_boost ^ (pos->flags & CPUFREQ_BOOST_FREQ))
> >                       continue;
> >
> > -             count += sprintf(&buf[count], "%d ", pos->frequency);
> > +             count += sprintf(&buf[count], "%u ", pos->frequency);
> >       }
> >       count += sprintf(&buf[count], "\n");
>
> Acked-by: Viresh Kumar <viresh.kumar@...aro.org>
>
> --

Applied as 6.10 material with edited subject and changelog, thanks!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ