summaryrefslogtreecommitdiffstats
path: root/arch/h8300/kernel/h8300_ksyms.c
diff options
context:
space:
mode:
authorJiang Biao2018-07-20 02:06:32 +0200
committerThomas Gleixner2018-07-20 07:07:39 +0200
commit8c934e01a7ce685d98e970880f5941d79272c654 (patch)
tree31d28a6c15860b60aecd2c30d1c0098c3b98ff13 /arch/h8300/kernel/h8300_ksyms.c
parentx86/pti: Check the return value of pti_user_pagetable_walk_p4d() (diff)
downloadkernel-qcow2-linux-8c934e01a7ce685d98e970880f5941d79272c654.tar.gz
kernel-qcow2-linux-8c934e01a7ce685d98e970880f5941d79272c654.tar.xz
kernel-qcow2-linux-8c934e01a7ce685d98e970880f5941d79272c654.zip
x86/pti: Check the return value of pti_user_pagetable_walk_pmd()
pti_user_pagetable_walk_pmd() can return NULL, so the return value should be checked to prevent a NULL pointer dereference. Add the check and a warning when the PMD allocation fails. Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: dave.hansen@linux.intel.com Cc: luto@kernel.org Cc: hpa@zytor.com Cc: albcamus@gmail.com Cc: zhong.weidong@zte.com.cn Link: https://lkml.kernel.org/r/1532045192-49622-2-git-send-email-jiang.biao2@zte.com.cn
Diffstat (limited to 'arch/h8300/kernel/h8300_ksyms.c')
0 files changed, 0 insertions, 0 deletions