ad78a95866
[ 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> |
||
---|---|---|
.. | ||
actions | ||
aspeed | ||
bcm | ||
berlin | ||
cirrus | ||
freescale | ||
intel | ||
mediatek | ||
meson | ||
mvebu | ||
nomadik | ||
pxa | ||
qcom | ||
samsung | ||
sh-pfc | ||
sirf | ||
spear | ||
sprd | ||
stm32 | ||
sunxi | ||
tegra | ||
ti | ||
uniphier | ||
vt8500 | ||
zte | ||
core.c | ||
core.h | ||
devicetree.c | ||
devicetree.h | ||
Kconfig | ||
Makefile | ||
pinconf-generic.c | ||
pinconf.c | ||
pinconf.h | ||
pinctrl-amd.c | ||
pinctrl-amd.h | ||
pinctrl-artpec6.c | ||
pinctrl-as3722.c | ||
pinctrl-at91-pio4.c | ||
pinctrl-at91.c | ||
pinctrl-at91.h | ||
pinctrl-axp209.c | ||
pinctrl-coh901.c | ||
pinctrl-coh901.h | ||
pinctrl-da850-pupd.c | ||
pinctrl-digicolor.c | ||
pinctrl-falcon.c | ||
pinctrl-gemini.c | ||
pinctrl-ingenic.c | ||
pinctrl-lantiq.c | ||
pinctrl-lantiq.h | ||
pinctrl-lpc18xx.c | ||
pinctrl-max77620.c | ||
pinctrl-mcp23s08.c | ||
pinctrl-ocelot.c | ||
pinctrl-oxnas.c | ||
pinctrl-palmas.c | ||
pinctrl-pic32.c | ||
pinctrl-pic32.h | ||
pinctrl-pistachio.c | ||
pinctrl-rk805.c | ||
pinctrl-rockchip.c | ||
pinctrl-rza1.c | ||
pinctrl-single.c | ||
pinctrl-st.c | ||
pinctrl-sx150x.c | ||
pinctrl-tb10x.c | ||
pinctrl-u300.c | ||
pinctrl-utils.c | ||
pinctrl-utils.h | ||
pinctrl-xway.c | ||
pinctrl-zynq.c | ||
pinmux.c | ||
pinmux.h |