From: Linus Walleij <linus.walleij@linaro.org>
To: Wells Lu <wellslutw@gmail.com>
Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
	wells.lu@sunplus.com
Subject: Re: [PATCH v2] pinctrl:sunplus: Add check for kmalloc
Date: Tue, 30 May 2023 13:48:08 +0200	[thread overview]
Message-ID: <CACRpkdaOh52hba6EbNeUGgV1ZmunJS4Tc1W7N6LCgQ0WkdABWA@mail.gmail.com> (raw)
In-Reply-To: <1685277277-12209-1-git-send-email-wellslutw@gmail.com>
On Sun, May 28, 2023 at 2:35 PM Wells Lu <wellslutw@gmail.com> wrote:
> Fix Smatch static checker warning:
> potential null dereference 'configs'. (kmalloc returns null)
>
> Changes in v2:
> 1. Add free allocated memory before returned -ENOMEM.
> 2. Add call of_node_put() before returned -ENOMEM.
>
> Fixes: aa74c44be19c ("pinctrl: Add driver for Sunplus SP7021")
> Signed-off-by: Wells Lu <wellslutw@gmail.com>
Patch applied as non-urgent fix, dropped the changelog as pointed
out by Andy.
Yours,
Linus Walleij
next prev parent reply	other threads:[~2023-05-30 11:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-28 12:34 [PATCH v2] pinctrl:sunplus: Add check for kmalloc Wells Lu
2023-05-28 15:02 ` andy.shevchenko
2023-05-30 11:48 ` Linus Walleij [this message]
     [not found] ` <9ace5c4c-5e17-4207-5a02-6a47ba0aee22@web.de>
2023-06-06 14:39   ` [PATCH] pinctrl: sunplus: Delete an unnecessary check before kfree() in sppctl_dt_node_to_map() Andy Shevchenko
2023-06-09  7:32   ` Linus Walleij
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=CACRpkdaOh52hba6EbNeUGgV1ZmunJS4Tc1W7N6LCgQ0WkdABWA@mail.gmail.com \
    --to=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wells.lu@sunplus.com \
    --cc=wellslutw@gmail.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).