[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <ca5aafc7-ae96-ad3b-dfc2-1e3b7413c259@linux.vnet.ibm.com>
Date: Wed, 2 Nov 2016 17:45:49 +0100
From: Frederic Barrat <fbarrat@...ux.vnet.ibm.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>,
imunsie@....ibm.com
Cc: kernel-janitors@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] cxl: Fix memory allocation failure test
Le 30/10/2016 à 20:35, Christophe JAILLET a écrit :
> '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@...adoo.fr>
> ---
Acked-by: Frederic Barrat <fbarrat@...ux.vnet.ibm.com>
Powered by blists - more mailing lists