Messages in this thread | | | From | Linus Walleij <> | Date | Tue, 15 Mar 2022 02:19:28 +0100 | Subject | Re: [PATCH] pinctrl: berlin: fix error return code of berlin_pinctrl_build_state() |
| |
On Thu, Mar 3, 2022 at 9:02 AM Meng Tang <tangmeng@uniontech.com> wrote:
> 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>
Patch applied!
Yours, Linus Walleij
| |