]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mediatek: fix a memleak when do dt maps.
authorHongzhou Yang <hongzhou.yang@mediatek.com>
Tue, 17 Nov 2015 22:33:41 +0000 (14:33 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 29 Nov 2015 21:34:39 +0000 (22:34 +0100)
commit189ec7c7d0b694fe52464b19610657409af78806
tree0a9dda4b32e8c08e3fb2fd2a657c4118010a0436
parent4dbfd5eea2432f2782f3aaae1477a344d0d87825
pinctrl: mediatek: fix a memleak when do dt maps.

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>
Reviewed-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c