[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdYaWFuuE2_p5My_PSLAPw3tumGaxJqMCiCvGFAPWrk2KA@mail.gmail.com>
Date: Tue, 15 Mar 2022 02:19:28 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Meng Tang <tangmeng@...ontech.com>
Cc: linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org
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@...ontech.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@...ontech.com>
Patch applied!
Yours,
Linus Walleij
Powered by blists - more mailing lists