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: <CAGTfZH3pmi_466aEMBeskZBc9-m2tqk3Tg=Zt6GxZO1R3jTAYg@mail.gmail.com>
Date: Thu, 15 May 2025 23:38:25 +0900
From: Chanwoo Choi <chanwoo@...nel.org>
To: linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: cw00.choi@...sung.com, myungjoo.ham@...sung.com, kyungmin.park@...sung.com, 
	pls <pleasurefish@....com>
Subject: Re: [PATCH] PM / devfreq: Fix a index typo in trans_stat

Applied it.

On Thu, May 15, 2025 at 11:31 PM <chanwoo@...nel.org> wrote:
>
> From: Chanwoo Choi <cw00.choi@...sung.com>
>
> Fixes: 4920ee6dcfaf ("PM / devfreq: Convert to use sysfs_emit_at() API")
> Signed-off-by: pls <pleasurefish@....com>
> Signed-off-by: Chanwoo Choi <cw00.choi@...sung.com>
> ---
>  drivers/devfreq/devfreq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
> index 46f3a8053197..c5f5960e643b 100644
> --- a/drivers/devfreq/devfreq.c
> +++ b/drivers/devfreq/devfreq.c
> @@ -1733,7 +1733,7 @@ static ssize_t trans_stat_show(struct device *dev,
>         for (i = 0; i < max_state; i++) {
>                 if (len >= PAGE_SIZE - 1)
>                         break;
> -               if (df->freq_table[2] == df->previous_freq)
> +               if (df->freq_table[i] == df->previous_freq)
>                         len += sysfs_emit_at(buf, len, "*");
>                 else
>                         len += sysfs_emit_at(buf, len, " ");
> --
> 2.25.1
>
>


-- 
Best Regards,
Chanwoo Choi
Samsung Electronics

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ