[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMRc=MfQnZQU_t9-uDPp18vFikz_9eP6LtnWJYG0+KFgWjBcEg@mail.gmail.com>
Date: Fri, 22 Mar 2024 08:46:50 +0100
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Kent Gibson <warthog618@...il.com>
Cc: Linus Walleij <linus.walleij@...aro.org>, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org, Alexey Dobriyan <adobriyan@...il.com>,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>, stable@...r.kernel.org,
Stefan Wahren <wahrenst@....net>
Subject: Re: [PATCH] gpio: cdev: sanitize the label before requesting the interrupt
On Fri, Mar 22, 2024 at 2:30 AM Kent Gibson <warthog618@...il.com> wrote:
>
> On Wed, Mar 20, 2024 at 01:59:44PM +0100, Bartosz Golaszewski wrote:
> > From: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
> >
> > Let's replace all "/" with "-".
> >
>
> I actually prefer the ":" you originally suggested, as it more clearly
> indicates a tier separation, whereas a hyphen is commonly used for
> multi-word names. And as the hyphen is more commonly used the sanitized
> name is more likely to conflict.
>
Sounds good, will do.
> >
> > + label = make_irq_label(le->label);
> > + if (!label)
> > + goto out_free_le;
> > +
>
> Need to set ret = -ENOMEM before the goto, else you will return 0.
>
Eek, right, thanks.
Bart
Powered by blists - more mailing lists