Messages in this thread | | | Date | Wed, 15 Jul 2015 11:45:29 +0200 | Subject | Re: [PATCH 1/2] gpio: altera: use of_mm_gpiochip_remove() to fix memory leak | From | Linus Walleij <> |
| |
On Wed, Jun 17, 2015 at 1:59 PM, Masahiro Yamada <yamada.masahiro@socionext.com> wrote:
> This driver calls of_mm_gpiochip_add() to add a memory mapped gpio > chip. So, of_mm_gpiochip_remove() should be used when removing it. > > The direct call of gpiochip_remove() misses unmapping the register > and freeing the label. > > Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Patch applied with the ACKs.
Yours, Linus Walleij
| |