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

Stephen Boyd
2022-10-03T19:32:43Z

Quoting xkernel.wang@foxmail.com (2022-04-07 02:33:49)
> From: Xiaoke Wang <xkernel.wang@foxmail.com>
>
> 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@foxmail.com>
> ---

Applied to clk-next