]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: at91-pio4: fix memleak after using dt map
authorLudovic Desroches <ludovic.desroches@atmel.com>
Tue, 1 Dec 2015 14:19:02 +0000 (15:19 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Dec 2015 17:26:19 +0000 (18:26 +0100)
commit5a099e918aaf68e5af29bcb6b15f6e27498892d9
tree2ecd6039ea19ab7294022a7c9e4938d0139897b8
parent1161bfa549190b49723aabf7d1fab34a07a5d72e
pinctrl: at91-pio4: fix memleak after using dt map

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: Ludovic Desroches <ludovic.desroches@atmel.com>
Reported-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91-pio4.c