From: Michael Ellerman <patch-notifications@ellerman•id.au>
To: Christophe Jaillet <christophe.jaillet@wanadoo•fr>,
imunsie@au1•ibm.com, fbarrat@linux•vnet.ibm.com
Cc: kernel-janitors@vger•kernel.org,
Christophe JAILLET <christophe.jaillet@wanadoo•fr>,
linuxppc-dev@lists•ozlabs.org, linux-kernel@vger•kernel.org
Subject: Re: cxl: Fix memory allocation failure test
Date: Tue, 22 Nov 2016 11:34:19 +1100 (AEDT) [thread overview]
Message-ID: <3tN60q61rdz9t17@ozlabs.org> (raw)
In-Reply-To: <20161030193557.23862-1-christophe.jaillet@wanadoo.fr>
On Sun, 2016-10-30 at 19:35:57 UTC, Christophe Jaillet wrote:
> 'cxl_context_alloc()' does not return an error pointer. It is just a
> shortcut for a call to 'kzalloc' with 'sizeof(struct cxl_context)' as the
> size parameter.
>
> So its return value should be compared with NULL.
> While fixing it, simplify a bit the code.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo•fr>
> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1•ibm.com>
> Acked-by: Frederic Barrat <fbarrat@linux•vnet.ibm.com>
> Acked-by: Ian Munsie <imunsie@au1•ibm.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/5cd4f5cec2374d2c09299211d2b357
cheers
prev parent reply other threads:[~2016-11-22 0:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-30 19:35 [PATCH] cxl: Fix memory allocation failure test Christophe JAILLET
2016-10-30 20:11 ` walter harms
2016-10-31 6:16 ` Andrew Donnellan
2016-11-02 16:45 ` Frederic Barrat
2016-11-16 1:56 ` Ian Munsie
2016-11-22 0:34 ` Michael Ellerman [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=3tN60q61rdz9t17@ozlabs.org \
--to=patch-notifications@ellerman$(echo .)id.au \
--cc=christophe.jaillet@wanadoo$(echo .)fr \
--cc=fbarrat@linux$(echo .)vnet.ibm.com \
--cc=imunsie@au1$(echo .)ibm.com \
--cc=kernel-janitors@vger$(echo .)kernel.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linuxppc-dev@lists$(echo .)ozlabs.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