Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1279425

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

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH] pinctrl: mediatek: fix a memleak when do dt maps.
Date 2015-11-29 22:40 +0100
Message-ID <qAhRo-2Xn-19@gated-at.bofh.it> (permalink)
References <qvX4S-2FN-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Nov 17, 2015 at 11:33 PM, Hongzhou Yang
<hongzhou.yang@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@mediatek.com>
> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
> Reviewed-by: Matthias Brugger <matthias.bgg@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.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] pinctrl: mediatek: fix a memleak when do dt maps. Hongzhou Yang <hongzhou.yang@mediatek.com> - 2015-11-17 23:40 +0100
  Re: [PATCH] pinctrl: mediatek: fix a memleak when do dt maps. Yingjoe Chen <yingjoe.chen@mediatek.com> - 2015-11-18 04:30 +0100
  Re: [PATCH] pinctrl: mediatek: fix a memleak when do dt maps. Linus Walleij <linus.walleij@linaro.org> - 2015-11-29 22:40 +0100

csiph-web