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

From: Cédric Le Goater
Date: Mon Jan 03 2022 - 01:48:28 EST


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@xxxxxxxx>
Cc: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
Fixes: 930914b7d528fc6b0249bffc00564100bcf6ef75 ("powerpc/xive: Add a debugfs file to dump internal XIVE state")
Signed-off-by: Ammar Faizi <ammarfaizi2@xxxxxxxxx>


Reviewed-by: Cédric Le Goater <clg@xxxxxxxx>

Thanks,

C.