[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75Vf20piKwGTwCN2xbvvFZqzA60a7QWqWTEw=fgrS-5Nv_w@mail.gmail.com>
Date: Thu, 25 Aug 2022 15:17:25 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: Will Shiu <Will.Shiu@...iatek.com>, stanley.chu@...iatek.com,
Matthias Brugger <matthias.bgg@...il.com>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Mediatek WSD Upstream <wsd_upstream@...iatek.com>
Subject: Re: [PATCH 1/1] Pinctrl: Add in zero check
On Thu, Aug 25, 2022 at 3:07 PM Linus Walleij <linus.walleij@...aro.org> wrote:
> On Tue, Aug 16, 2022 at 11:09 AM Will Shiu <Will.Shiu@...iatek.com> wrote:
>
> > add in check of buffer offset to avoid the exception when input 0 size.
> >
> > Signed-off-by: Will Shiu <Will.Shiu@...iatek.com>
>
> Looks good to me, patch applied!
Sorry, but it seems the author didn't pay much attention and didn't
really work on it. What does the < 0 comparison mean here?
I would ask if there is _real_ issue with the code? What is the use
case and why is this check needed?
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists