[PATCH v2 1/7] i2c: npcm: restore slave addresses array length
Andi Shyti
andi.shyti at kernel.org
Fri Sep 6 16:49:34 AEST 2024
Hi Tyrone,
On Fri, Sep 06, 2024 at 10:28:30AM GMT, Tyrone Ting wrote:
> Hi Andy:
>
> Thank you for your comments.
>
> Andi Shyti <andi.shyti at kernel.org> 於 2024年9月6日 週五 上午5:36寫道:
> >
> > 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>
> >
> > your email used in From: is different that your e-mail used the
> > SoB. Is this done in purpose? If so I will keep it as it is, no
> > problem for me, otherwise I can fix it while applying it.
> >
>
> I'll add the option "--from kfting at nuvoton.com", same as the patch
> author's email while using the tool "git send-email"
> in the next patch set.
don't worry, I will apply this patch number '1' because it's
independent from the rest of the series. I will do all the
changes you agreed with me.
When you resend this series you don't need to include this patch,
just rebase on top of i2c/i2c-hostp[*].
Thanks,
Andi
[*] git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git
> > Andi
>
> Have a nice day.
>
> Thank you.
>
> Regards,
> Tyrone
More information about the openbmc
mailing list