]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit09df752c049413f6d9f9505cc2f703a7b96c1eeb
treebacad788ca8681679652b7e6906fbb16907846dd
parent66da1a657441bccb1ee7c4df25657ba92c07b536
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