[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMRc=McB25E=QAcBANE5RdM3SAQkuSpn9aVO+hN5ZnEjVRGb2g@mail.gmail.com>
Date: Mon, 19 Jun 2023 14:58:15 +0200
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Michael Walle <mwalle@...nel.org>
Cc: Linus Walleij <linus.walleij@...aro.org>,
Andy Shevchenko <andy@...nel.org>, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org, Jiawen Wu <jiawenwu@...stnetic.com>
Subject: Re: [PATCH v2] gpiolib: Fix irq_domain resource tracking for gpiochip_irqchip_add_domain()
On Mon, Jun 19, 2023 at 10:56 AM Michael Walle <mwalle@...nel.org> wrote:
>
> 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@...stnetic.com>
> Signed-off-by: Michael Walle <mwalle@...nel.org>
> Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
> Reviewed-by: Andy Shevchenko <andy@...nel.org>
> ---
Applied, thanks!
Bart
Powered by blists - more mailing lists