[PATCH] powerpc/xive: Add missing null check after calling kmalloc

Cédric Le Goater clg at kaod.org
Mon Jan 3 17:41:13 AEDT 2022


On 12/26/21 14:54, Ammar Faizi wrote:
> Commit 930914b7d528fc ("powerpc/xive: Add a debugfs file to dump
> internal XIVE state") forgot to add a null check.
> 
> Add it.
> 
> Cc: Cédric Le Goater <clg at kaod.org>
> Cc: Michael Ellerman <mpe at ellerman.id.au>
> Fixes: 930914b7d528fc6b0249bffc00564100bcf6ef75 ("powerpc/xive: Add a debugfs file to dump internal XIVE state")
> Signed-off-by: Ammar Faizi <ammarfaizi2 at gmail.com>


Reviewed-by: Cédric Le Goater <clg at kaod.org>

Thanks,

C.


More information about the Linuxppc-dev mailing list