pinctrl: stm32: fix memory leak issue
authorAlexandre Torgue <alexandre.torgue@st.com>
Thu, 14 Feb 2019 16:54:24 +0000 (17:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:38:32 +0000 (15:38 +0100)
commitc319da0690bf14bd2b8da37e59dbe9f32e5f97ac
tree988bce92e33900600a8a0b388d4240c6eb1841e5
parent517287405bf928638ab7dd30ba2226e51f9cba45
pinctrl: stm32: fix memory leak issue

commit cd8c9b5a49576bf28990237715bc2cb2210ac80a upstream.

configs is allocated by pinconf_generic_parse_dt_config(),
pinctrl_utils_add_map_configs() duplicates configs so it can and has to
be freed to prevent memory leaks.

Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/stm32/pinctrl-stm32.c