Re: [PATCH] pinctrl: at91-pio4: fix memleak after using dt map

2015-12-10 Thread Linus Walleij
On Tue, Dec 1, 2015 at 3:19 PM, Ludovic Desroches wrote: > 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 > Reported-by: Yingjoe Chen

Re: [PATCH] pinctrl: at91-pio4: fix memleak after using dt map

2015-12-10 Thread Linus Walleij
On Tue, Dec 1, 2015 at 3:19 PM, Ludovic Desroches wrote: > 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

[PATCH] pinctrl: at91-pio4: fix memleak after using dt map

2015-12-01 Thread Ludovic Desroches
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 Reported-by: Yingjoe Chen --- drivers/pinctrl/pinctrl-at91-pio4.c | 15 +-- 1 file

[PATCH] pinctrl: at91-pio4: fix memleak after using dt map

2015-12-01 Thread Ludovic Desroches
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 Reported-by: Yingjoe Chen ---