[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210108153237.GA182053@roeck-us.net>
Date: Fri, 8 Jan 2021 07:32:37 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: David Arcari <darcari@...hat.com>
Cc: linux-hwmon@...r.kernel.org,
Naveen Krishna Chatradhi <nchatrad@....com>,
Jean Delvare <jdelvare@...e.com>, linux-kernel@...r.kernel.org,
stable@...r.kernel.org
Subject: Re: [PATCH] hwmon: (amd_energy) fix allocation of hwmon_channel_info
config
On Thu, Jan 07, 2021 at 09:47:07AM -0500, David Arcari wrote:
> hwmon, specifically hwmon_num_channel_attrs, expects the config
> array in the hwmon_channel_info structure to be terminated by
> a zero entry. amd_energy does not honor this convention. As
> result, a KASAN warning is possible. Fix this by adding an
> additional entry and setting it to zero.
>
> Fixes: 8abee9566b7e ("hwmon: Add amd_energy driver to report energy counters")
>
> Signed-off-by: David Arcari <darcari@...hat.com>
> Cc: Naveen Krishna Chatradhi <nchatrad@....com>
> Cc: Jean Delvare <jdelvare@...e.com>
> Cc: Guenter Roeck <linux@...ck-us.net>
> Cc: linux-kernel@...r.kernel.org
> Cc: stable@...r.kernel.org
> Signed-off-by: David Arcari <darcari@...hat.com>
> Acked-by: Naveen Krishna Chatradhi <nchatrad@....com>
Applied.
Thanks,
Guenter
Powered by blists - more mailing lists