[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMRc=MdCYp=EPe2Koh4NKvKTUWYZn7TRNKXVG39RLYxRxEsiAw@mail.gmail.com>
Date: Fri, 16 Feb 2024 14:21:02 +0100
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Marek Szyprowski <m.szyprowski@...sung.com>
Cc: Kent Gibson <warthog618@...il.com>, Linus Walleij <linus.walleij@...aro.org>,
"Paul E . McKenney" <paulmck@...nel.org>, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: Re: [PATCH] gpio: cdev: fix a NULL-pointer dereference with DEBUG enabled
On Fri, Feb 16, 2024 at 1:35 PM Marek Szyprowski
<m.szyprowski@...sung.com> wrote:
>
> On 16.02.2024 11:59, Bartosz Golaszewski wrote:
> > From: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
> >
> > We are actually passing the gc pointer to chip_dbg() so we have to
> > srcu_dereference() it.
> >
> > Fixes: 8574b5b47610 ("gpio: cdev: use correct pointer accessors with SRCU")
> > Reported-by: Marek Szyprowski <m.szyprowski@...sung.com>
> > Closes: https://lore.kernel.org/lkml/179caa10-5f86-4707-8bb0-fe1b316326d6@samsung.com/
> > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
> Tested-by: Marek Szyprowski <m.szyprowski@...sung.com>
Thanks, patch applied.
Bart
[snip]
Powered by blists - more mailing lists