summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorXiaoke Wang <xkernel.wang@foxmail.com>2022-03-24 12:15:08 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-27 15:38:55 +0300
commitf0ba965e47830057c5550b869a5127e8e50136cf (patch)
treebc34cbe7bfc0d97bb494e7397c5264b1259b43ff /arch
parentb78d403395682bb69976ade363613803e69fcdff (diff)
downloadlinux-f0ba965e47830057c5550b869a5127e8e50136cf.tar.xz
drm/msm/disp: check the return value of kzalloc()
[ Upstream commit f75e582b0c3ee8f0bddc2248cc8b9175f29c5937 ] 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> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Link: https://lore.kernel.org/r/tencent_B3E19486FF39415098B572B7397C2936C309@qq.com Signed-off-by: Rob Clark <robdclark@chromium.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions