kernel-fxtec-pro1x/drivers/pinctrl/sunxi
Christophe JAILLET ad78a95866 pinctrl: sunxi: Fix a memory leak in 'sunxi_pinctrl_build_state()'
[ Upstream commit a93a676b079144009f55fff2ab0e34c3b7258c8a ]

If 'krealloc()' fails, 'pctl->functions' is set to NULL.
We should instead use a temp variable in order to be able to free the
previously allocated memeory, in case of OOM.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-01 09:16:24 +01:00
..
Kconfig
Makefile
pinctrl-sun4i-a10.c
pinctrl-sun5i.c
pinctrl-sun6i-a31-r.c
pinctrl-sun6i-a31.c
pinctrl-sun8i-a23-r.c
pinctrl-sun8i-a23.c
pinctrl-sun8i-a33.c
pinctrl-sun8i-a83t-r.c
pinctrl-sun8i-a83t.c pinctrl: sunxi: a83t: Fix IRQ offset typo for PH11 2018-12-19 19:19:50 +01:00
pinctrl-sun8i-h3-r.c
pinctrl-sun8i-h3.c
pinctrl-sun8i-v3s.c
pinctrl-sun9i-a80-r.c
pinctrl-sun9i-a80.c
pinctrl-sun50i-a64-r.c
pinctrl-sun50i-a64.c
pinctrl-sun50i-h5.c
pinctrl-sun50i-h6-r.c
pinctrl-sun50i-h6.c pinctrl: sunxi: Correct number of IRQ banks on H6 main pin controller 2019-02-15 08:10:11 +01:00
pinctrl-sunxi.c pinctrl: sunxi: Fix a memory leak in 'sunxi_pinctrl_build_state()' 2019-12-01 09:16:24 +01:00
pinctrl-sunxi.h