Re: [PATCH] gpio: virtuser: remove the debugfs files before freeing the line data

From: Bartosz Golaszewski

Date: Tue Nov 03 2026 - 08:12:54 EST



On Mon, 02 Nov 2026 17:57:07 +1000, Yu Zhang wrote:
> gpio_virtuser_probe() registers the devm action that removes the debugfs
> directory before it allocates the per-line and per-array data that the
> debugfs files point to. devres releases resources in reverse order, so
> on unbind the line data is freed, the consumer_lock mutex is destroyed
> and the GPIO descriptors are put first, and the debugfs files are only
> removed afterwards.
>
> [...]

Applied, thanks!

[1/1] gpio: virtuser: remove the debugfs files before freeing the line data
https://git.kernel.org/brgl/c/c2d0710318b8cd57d0ef6088d0ee4bbc1e827fd3

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>