Michael Walle ff7a1790fb gpiolib: Fix irq_domain resource tracking for gpiochip_irqchip_add_domain()
Up until commit 6a45b0e2589f ("gpiolib: Introduce
gpiochip_irqchip_add_domain()") all irq_domains were allocated
by gpiolib itself and thus gpiolib also takes care of freeing it.

With gpiochip_irqchip_add_domain() a user of gpiolib can associate an
irq_domain with the gpio_chip. This irq_domain is not managed by
gpiolib and therefore must not be freed by gpiolib.

Fixes: 6a45b0e2589f ("gpiolib: Introduce gpiochip_irqchip_add_domain()")
Reported-by: Jiawen Wu <jiawenwu@trustnetic.com>
Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
2023-06-19 14:57:38 +02:00
..
2023-04-25 17:18:18 -07:00
2021-04-14 10:19:22 +01:00
2022-08-04 18:34:05 -07:00
2023-04-25 17:18:18 -07:00
2022-10-26 14:52:02 +02:00
2021-05-05 16:07:41 +02:00
2022-10-26 14:52:01 +02:00
2022-10-08 09:46:29 -07:00
2022-06-21 18:01:11 +03:00
2023-03-06 12:33:02 +02:00
2022-06-06 14:09:16 +03:00
2021-11-08 11:55:21 -08:00
2023-02-22 11:01:17 -08:00
2022-01-14 18:50:52 -05:00
2022-10-08 09:46:29 -07:00
2019-12-09 10:40:18 +01:00
2023-01-30 15:55:31 +01:00
2023-04-25 17:18:18 -07:00
2023-03-06 12:33:02 +02:00
2023-03-06 12:33:02 +02:00
2023-03-06 12:33:02 +02:00
2023-03-06 12:33:02 +02:00
2022-10-24 12:30:26 +03:00
2023-05-02 10:41:31 -07:00