lkml.org 
[lkml]   [2015]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 1/2] gpio: altera: use of_mm_gpiochip_remove() to fix memory leak
    From
    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


    \
     
     \ /
      Last update: 2015-07-15 12:01    [W:3.145 / U:0.300 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site