OSDN Git Service

pinctrl: stm32: fix memory leak issue
authorAlexandre Torgue <alexandre.torgue@st.com>
Thu, 14 Feb 2019 16:54:24 +0000 (17:54 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 20 Feb 2019 09:40:39 +0000 (10:40 +0100)
commitcd8c9b5a49576bf28990237715bc2cb2210ac80a
treebacad788ca8681679652b7e6906fbb16907846dd
parent44df22e7ce156499350a723ab3186d45911f00cd
pinctrl: stm32: fix memory leak issue

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>
drivers/pinctrl/stm32/pinctrl-stm32.c