arm64: armv8_deprecated: Checking return value for memory allocation
authorYunfeng Ye <yeyunfeng@huawei.com>
Sun, 29 Sep 2019 04:44:17 +0000 (12:44 +0800)
committerWill Deacon <will@kernel.org>
Tue, 8 Oct 2019 12:34:04 +0000 (13:34 +0100)
commit3e7c93bd04edfb0cae7dad1215544c9350254b8f
tree667791d9c4ec56b544a6ebd4dc57d8c4537b8755
parent7c4791c9efca8c105a86022f7d5532aeaa819125
arm64: armv8_deprecated: Checking return value for memory allocation

There are no return value checking when using kzalloc() and kcalloc() for
memory allocation. so add it.

Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/armv8_deprecated.c