[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <172979664791.66034.4461804157130165429.b4-ty@linaro.org>
Date: Thu, 24 Oct 2024 21:04:14 +0200
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Linus Walleij <linus.walleij@...aro.org>,
Kent Gibson <warthog618@...il.com>,
Mark Brown <broonie@...nel.org>,
Klara Modin <klarasmodin@...il.com>,
Bartosz Golaszewski <brgl@...ev.pl>
Cc: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>,
linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] gpiolib: fix a NULL-pointer dereference when setting direction
From: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
On Thu, 24 Oct 2024 15:38:34 +0200, Bartosz Golaszewski wrote:
> For optional GPIOs we may pass NULL to gpiod_direction_(input|output)().
> With the call to the notifier chain added by commit 07c61d4da43f
> ("gpiolib: notify user-space about in-kernel line state changes") we
> will now dereference a NULL pointer in this case. The reason for that is
> the fact that the expansion of the VALIDATE_DESC() macro (which returns
> 0 for NULL descriptors) was moved into the nonotify variants of the
> direction setters.
>
> [...]
Applied, thanks!
[1/1] gpiolib: fix a NULL-pointer dereference when setting direction
commit: 1f4a640e9ac7f450752365541ad9c064b13ef8bf
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Powered by blists - more mailing lists