Re: [PATCH] gpio: qixis-fpga: Fix error handling for devm_regmap_init_mmio()

From: Bartosz Golaszewski

Date: Mon Mar 23 2026 - 06:13:14 EST



On Fri, 20 Mar 2026 22:56:38 +0800, Felix Gu wrote:
> devm_regmap_init_mmio() returns an ERR_PTR() on failure, not NULL.
> The original code checked for NULL which would never trigger on error,
> potentially leading to an invalid pointer dereference.
> Use IS_ERR() and PTR_ERR() to properly handle the error case.
>
>

Applied, thanks!

[1/1] gpio: qixis-fpga: Fix error handling for devm_regmap_init_mmio()
https://git.kernel.org/brgl/c/8de4e0f44c638c66cdc5eeb4d5ab9acd61c31e4f

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