From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> 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@xxxxxxxxxx>