[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251203020342.2564767-1-guanwentao@uniontech.com>
Date: Wed, 3 Dec 2025 10:03:42 +0800
From: Wentao Guan <guanwentao@...ontech.com>
To: andy@...nel.org
Cc: mathieu.dubois-briand@...tlin.com,
linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org,
zhanjun@...ontech.com,
niecheng1@...ontech.com,
Wentao Guan <guanwentao@...ontech.com>,
stable@...r.kernel.org,
WangYuli <wangyl5933@...naunicom.cn>
Subject: [PATCH] gpio: regmap: Fix gpio_remap_register
Because gpiochip_add_data successfully done, use
err_remove_gpiochip instead of err_free_bitmap to free
such as gdev,descs..
Fixes: 553b75d4bfe9 ("gpio: regmap: Allow to allocate regmap-irq device")
CC: stable@...r.kernel.org
Co-developed-by: WangYuli <wangyl5933@...naunicom.cn>
Signed-off-by: WangYuli <wangyl5933@...naunicom.cn>
Signed-off-by: Wentao Guan <guanwentao@...ontech.com>
---
drivers/gpio/gpio-regmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-regmap.c b/drivers/gpio/gpio-regmap.c
index fd986afa7db5f..f0bcb2c2c6748 100644
--- a/drivers/gpio/gpio-regmap.c
+++ b/drivers/gpio/gpio-regmap.c
@@ -310,7 +310,7 @@ struct gpio_regmap *gpio_regmap_register(const struct gpio_regmap_config *config
config->regmap_irq_line, config->regmap_irq_flags,
0, config->regmap_irq_chip, &gpio->irq_chip_data);
if (ret)
- goto err_free_bitmap;
+ goto err_remove_gpiochip;
irq_domain = regmap_irq_get_domain(gpio->irq_chip_data);
} else
--
2.20.1
Powered by blists - more mailing lists