Re: [PATCH v2] clk: pxa: add a check for the return value of kzalloc()

From: Stephen Boyd
Date: Mon Oct 03 2022 - 15:32:43 EST


Quoting xkernel.wang@xxxxxxxxxxx (2022-04-07 02:33:49)
> From: Xiaoke Wang <xkernel.wang@xxxxxxxxxxx>
>
> kzalloc() is a memory allocation function which can return NULL when
> some internal memory errors happen. So it is better to check it to
> prevent potential wrong memory access.
>
> Signed-off-by: Xiaoke Wang <xkernel.wang@xxxxxxxxxxx>
> ---

Applied to clk-next