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 <[email protected]>


Reply via email to