From: Linus Walleij <linus.walleij@linaro.org>
To: "Théo Lebrun" <theo.lebrun@bootlin.com>
Cc: linux-gpio@vger.kernel.org,
Gregory CLEMENT <gregory.clement@bootlin.com>,
Dan Carpenter <dan.carpenter@linaro.org>
Subject: Re: [PATCH] pinctrl: nomadik: fix dereference of error pointer
Date: Wed, 6 Mar 2024 20:47:43 +0100 [thread overview]
Message-ID: <CACRpkdaCyMntZDntbDufMQc8AvCvJvN5hk1n=ipjW+DmVXeSww@mail.gmail.com> (raw)
In-Reply-To: <20240306-mbly-gpio-err-fix-v1-1-a3605ba2336f@bootlin.com>
On Wed, Mar 6, 2024 at 5:19 PM Théo Lebrun <theo.lebrun@bootlin.com> wrote:
> If nmk_gpio_populate_chip() returns an error, avoid deferencing its
> return value.
>
> Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> Closes: https://lore.kernel.org/linux-gpio/5ee722f8-7582-420d-8477-45be6acde90f@moroto.mountain/
> Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
> ---
> Fix a smatch-reported potential bug. Thanks Dan for the bug report.
Patch applied!
Yours,
Linus Walleij
prev parent reply other threads:[~2024-03-06 19:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-06 16:19 [PATCH] pinctrl: nomadik: fix dereference of error pointer Théo Lebrun
2024-03-06 19:47 ` Linus Walleij [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACRpkdaCyMntZDntbDufMQc8AvCvJvN5hk1n=ipjW+DmVXeSww@mail.gmail.com' \
--to=linus.walleij@linaro.org \
--cc=dan.carpenter@linaro.org \
--cc=gregory.clement@bootlin.com \
--cc=linux-gpio@vger.kernel.org \
--cc=theo.lebrun@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).