From: Michael Ellerman <patch-notifications@ellerman•id.au>
To: Gen Zhang <blackgod016574@gmail•com>,
benh@kernel•crashing.org, paulus@samba•org
Cc: nfont@linux•vnet.ibm.com, linuxppc-dev@lists•ozlabs.org,
linux-kernel@vger•kernel.org
Subject: Re: [PATCH] dlpar: Fix a missing-check bug in dlpar_parse_cc_property()
Date: Mon, 3 Jun 2019 22:32:57 +1000 (AEST) [thread overview]
Message-ID: <45HZG14vJpz9sP6@ozlabs.org> (raw)
In-Reply-To: <20190526024240.GA14546@zhanggen-UX430UQ>
On Sun, 2019-05-26 at 02:42:40 UTC, Gen Zhang wrote:
> In dlpar_parse_cc_property(), 'prop->name' is allocated by kstrdup().
> kstrdup() may return NULL, so it should be checked and handle error.
> And prop should be freed if 'prop->name' is NULL.
>
> Signed-off-by: Gen Zhang <blackgod016574@gmail•com>
> Acked-by: Nathan Lynch <nathanl@linux•ibm.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/efa9ace68e487ddd29c2b4d6dd232421
cheers
next prev parent reply other threads:[~2019-06-03 12:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-26 2:42 [PATCH] dlpar: Fix a missing-check bug in dlpar_parse_cc_property() Gen Zhang
2019-05-28 16:38 ` Nathan Lynch
2019-06-03 12:32 ` Michael Ellerman [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-05-30 0:58 Gen Zhang
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=45HZG14vJpz9sP6@ozlabs.org \
--to=patch-notifications@ellerman$(echo .)id.au \
--cc=benh@kernel$(echo .)crashing.org \
--cc=blackgod016574@gmail$(echo .)com \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linuxppc-dev@lists$(echo .)ozlabs.org \
--cc=nfont@linux$(echo .)vnet.ibm.com \
--cc=paulus@samba$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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