From: James Seo <james@equiv.tech>
To: Kees Cook <kees@kernel.org>
Cc: Kees Cook <kees+treewide@kernel.org>,
Guenter Roeck <linux@roeck-us.net>,
linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-hardening@vger.kernel.org
Subject: Re: [PATCH] hwmon: hp-wmi-sensors: Fix info_map[] allocation type
Date: Thu, 17 Sep 2026 14:36:54 -0700 [thread overview]
Message-ID: <aqxddgcDH1khPlwq@equiv.tech> (raw)
In-Reply-To: <20260917211338.i.682-kees@kernel.org>
On Thu, Sep 17, 2026 at 02:13:39PM -0700, Kees Cook wrote:
> drivers/hwmon/hp-wmi-sensors.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/hwmon/hp-wmi-sensors.c b/drivers/hwmon/hp-wmi-sensors.c
> index 03c684ba83bd..cc193a8890f2 100644
> --- a/drivers/hwmon/hp-wmi-sensors.c
> +++ b/drivers/hwmon/hp-wmi-sensors.c
> @@ -1788,7 +1788,7 @@ static int init_numeric_sensors(struct hp_wmi_sensors *state,
>
> if (!info_map[type]) {
> info_map[type] = devm_kcalloc(dev, channel_count[type],
> - sizeof(*info_map),
> + sizeof(*info_map[type]),
> GFP_KERNEL);
> if (!info_map[type])
> return -ENOMEM;
> --
> 2.34.1
>
Acked-by: James Seo <james@equiv.tech>
next prev parent reply other threads:[~2026-09-17 21:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 21:13 [PATCH] hwmon: hp-wmi-sensors: Fix info_map[] allocation type Kees Cook
2026-09-17 21:21 ` sashiko-bot
2026-09-17 21:36 ` James Seo [this message]
2026-09-18 15:07 ` Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aqxddgcDH1khPlwq@equiv.tech \
--to=james@equiv.tech \
--cc=kees+treewide@kernel.org \
--cc=kees@kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.