Re: [PATCH] hwmon: (nct6775-core) Explicitly initialize nct6775_device_names indexes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 16, 2023 at 6:03 PM Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
>
> Changing the "kinds" enum start value to be 1-indexed instead of
> 0-indexed caused look-ups in nct6775_device_names[] to be misaligned or
> off the end.
>
> Initialize the string list with explicit indexes.
>
> Cc: Rob Herring <robh@xxxxxxxxxx>
> Cc: Kees Cook <keescook@xxxxxxxxxxxx>
> Fixes: 0a7093e69c1e ("hwmon: nct6775-i2c: Use i2c_get_match_data()")
> Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
> ---
>  drivers/hwmon/nct6775-core.c | 26 +++++++++++++-------------
>  1 file changed, 13 insertions(+), 13 deletions(-)

Sorry I missed that. Thanks for fixing it.

Reviewed-by: Rob Herring <robh@xxxxxxxxxx>

Rob





[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux