[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <176218266920.62377.10595261785996832493.b4-ty@linaro.org>
Date: Mon, 3 Nov 2025 16:11:18 +0100
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Linus Walleij <linus.walleij@...aro.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.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 v2] gpiolib: fix invalid pointer access in debugfs
From: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
On Mon, 03 Nov 2025 15:11:32 +0100, Bartosz Golaszewski wrote:
> If the memory allocation in gpiolib_seq_start() fails, the s->private
> field remains uninitialized and is later dereferenced without checking
> in gpiolib_seq_stop(). Initialize s->private to NULL before calling
> kzalloc() and check it before dereferencing it.
>
>
Applied, thanks!
[1/1] gpiolib: fix invalid pointer access in debugfs
https://git.kernel.org/brgl/linux/c/2f6115ad8864cf3f48598f26c74c7c8e5c391919
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Powered by blists - more mailing lists