Skip to content
Commit de845036 authored by Meng Tang's avatar Meng Tang Committed by Linus Walleij
Browse files

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: default avatarMeng Tang <tangmeng@uniontech.com>
Link: https://lore.kernel.org/r/20220303080206.16463-1-tangmeng@uniontech.com
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent c0e4c71a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment