Re: [PATCH] gpio: virtuser: skip free_irq when no IRQ is installed
From: Bartosz Golaszewski
Date: Mon Sep 14 2026 - 04:40:50 EST
On Mon, 14 Sep 2026 13:15:37 +0800, Runyu Xiao wrote:
> Disabling interrupt monitoring uses atomic_xchg() to clear the stored IRQ.
> When monitoring is already disabled, atomic_xchg() returns 0. It must not
> be passed to free_irq().
>
> The bug is reproducible on an x86_64 QEMU guest with
> CONFIG_GPIO_VIRTUSER=y and CONFIG_GPIO_SIM=y. Configure a live
> gpio-virtuser device through configfs. Its input lookup must refer to a
> live gpio-sim bank, such as key gpio-sim-test with offset 0. The
> consumer's dev_name attribute is shown as <dev> below; then run:
>
> [...]
Applied, thanks!
[1/1] gpio: virtuser: skip free_irq when no IRQ is installed
https://git.kernel.org/brgl/c/ebdb6b0cc453103972278258d88d555d43129aef
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>