[PATCH] cxl: Fix memory allocation failure test
Frederic Barrat
fbarrat at linux.vnet.ibm.com
Thu Nov 3 03:45:49 AEDT 2016
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 at wanadoo.fr>
> ---
Acked-by: Frederic Barrat <fbarrat at linux.vnet.ibm.com>
More information about the Linuxppc-dev
mailing list