Skip to content
Commit 117a1542 authored by Xiaoke Wang's avatar Xiaoke Wang Committed by Stephen Boyd
Browse files

clk: pxa: add a check for the return value of kzalloc()



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: default avatarXiaoke Wang <xkernel.wang@foxmail.com>
Link: https://lore.kernel.org/r/tencent_2B9817738F38B02844C245946EFF3B407E09@qq.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent e11a47f5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment