WSL2-Linux-Kernel/drivers/pinctrl/berlin
Meng Tang de845036f9 pinctrl: berlin: fix error return code of berlin_pinctrl_build_state()
When krealloc() fails and pctrl->functions is NULL, no error
return code of berlin_pinctrl_build_state() is assigned.
To fix this bug, ret is assigned with -ENOMEM when pctrl->functions
is NULL.

Signed-off-by: Meng Tang <tangmeng@uniontech.com>
Link: https://lore.kernel.org/r/20220303080206.16463-1-tangmeng@uniontech.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2022-03-15 02:18:57 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
berlin-bg2.c pinctrl: berlin: switch to SPDX license identifier 2018-05-23 11:45:23 +02:00
berlin-bg2cd.c pinctrl: berlin: switch to SPDX license identifier 2018-05-23 11:45:23 +02:00
berlin-bg2q.c pinctrl: berlin: switch to SPDX license identifier 2018-05-23 11:45:23 +02:00
berlin-bg4ct.c pinctrl: berlin: switch to SPDX license identifier 2018-05-23 11:45:23 +02:00
berlin.c pinctrl: berlin: fix error return code of berlin_pinctrl_build_state() 2022-03-15 02:18:57 +01:00
berlin.h pinctrl: berlin: switch to SPDX license identifier 2018-05-23 11:45:23 +02:00
pinctrl-as370.c pinctrl: berlin: as370: fix a typo s/spififib/spdifib 2019-10-16 14:12:55 +02:00