]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/sme: Fix NULL check after kzalloc
authorWan Jiabing <wanjiabing@vivo.com>
Tue, 26 Apr 2022 11:30:53 +0000 (19:30 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 29 Apr 2022 15:03:47 +0000 (16:03 +0100)
commitb5ad351dc44be69d3e95f620e427361ad9da6f65
tree486e19ed5aabf3500501f189727fcbfb187bb5ac
parent56f63d4229ad8beb53030a18fd44177225de0237
arm64/sme: Fix NULL check after kzalloc

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: 34097d351fdb ("arm64/sme: Implement traps and syscall handling for SME")
Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Reviwed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220426113054.630983-1-wanjiabing@vivo.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/process.c