[PATCH] pinctrl: mediatek: fix a memleak when do dt maps.

Linus Walleij linus.walleij at linaro.org
Sun Nov 29 13:35:39 PST 2015

On Tue, Nov 17, 2015 at 11:33 PM, Hongzhou Yang
<hongzhou.yang at mediatek.com> wrote:

> configs will kmemdup to dup_configs in pictrl util function.
> So configs need to be freed.
> Signed-off-by: Hongzhou Yang <hongzhou.yang at mediatek.com>
> Reviewed-by: Daniel Kurtz <djkurtz at chromium.org>
> Reviewed-by: Matthias Brugger <matthias.bgg at gmail.com>
> ---
>  Fix a memleak issue.
>  According to Yingjoe's comment, add return checek for pinconf_generic_parse_dt_config.

Patch applied with Yingjoe's review tag.

Linus Walleij

More information about the linux-arm-kernel mailing list