Commit 0e13b792 authored by Wan Jiabing's avatar Wan Jiabing Committed by yanhaitao
Browse files

arm64/sme: Fix NULL check after kzalloc

mainline inclusion
from mainline-v5.19-rc1
commit 2e29b997
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8E73O
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2e29b9971ac54dec88baa58856a230ec2f2a2dff



-------------------------------------------------

Fix following coccicheck error:
./arch/arm64/kernel/process.c:322:2-23: alloc with no test, possible model on line 326

Here should be dst->thread.sve_state.

Fixes: 8bd7f91c ("arm64/sme: Implement traps and syscall handling for SME")
Signed-off-by: default avatarWan Jiabing <wanjiabing@vivo.com>
Reviwed-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220426113054.630983-1-wanjiabing@vivo.com


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarWang ShaoBo <bobo.shaobowang@huawei.com>
parent fd99bd09
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment