[PATCH v2 1/7] i2c: npcm: restore slave addresses array length
Tyrone Ting
warp5tw at gmail.com
Fri Sep 6 18:01:18 AEST 2024
Hi Andi:
Thank you for your prompt response and help.
Andi Shyti <andi.shyti at kernel.org> 於 2024年9月6日 週五 下午3:05寫道:
>
> Hi Tyrone,
>
> On Fri, Aug 30, 2024 at 11:46:34AM GMT, Tyrone Ting wrote:
> > The smatch check warning is "buffer overflow 'npcm_i2caddr' 2 <= 9".
> > The original design supports 10 slave addresses although only 2
> > addresses are required for current implementation.
> >
> > Restore the npcm_i2caddr array length to fix the smatch warning.
> >
> > Fixes: 47d506d1a28f ("i2c: npcm: Remove own slave addresses 2:10")
> > Reported-by: Dan Carpenter <dan.carpenter at linaro.org>
> > Closes: https://lore.kernel.org/r/202408130818.FgDP5uNm-lkp@intel.com/
> > Signed-off-by: Tyrone Ting <kfting at nuvoton.com>
>
> with the changes we agreed, I merged just this first patch in
> i2c/i2c-host.
>
> Thanks,
> Andi
Have a nice day.
Regards,
Tyrone
More information about the openbmc
mailing list