summaryrefslogtreecommitdiffstats
path: root/Documentation/padata.txt
diff options
context:
space:
mode:
authorKangjie Lu <kjlu@umn.edu>2019-03-14 00:46:51 -0500
committerThomas Gleixner <tglx@linutronix.de>2019-03-21 12:24:39 +0100
commit534c89c22e26b183d838294f0937ee092c82ad3a (patch)
treeade097458f4a14f6342fee6638a136c9690937d4 /Documentation/padata.txt
parent2e84f116afca3719c9d0a1a78b47b48f75fd5724 (diff)
downloadlinux-534c89c22e26b183d838294f0937ee092c82ad3a.tar.bz2
x86/hyperv: Prevent potential NULL pointer dereference
The page allocation in hv_cpu_init() can fail, but the code does not have a check for that. Add a check and return -ENOMEM when the allocation fails. [ tglx: Massaged changelog ] Signed-off-by: Kangjie Lu <kjlu@umn.edu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Mukesh Ojha <mojha@codeaurora.org> Acked-by: "K. Y. Srinivasan" <kys@microsoft.com> Cc: pakki001@umn.edu Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Stephen Hemminger <sthemmin@microsoft.com> Cc: Sasha Levin <sashal@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: linux-hyperv@vger.kernel.org Link: https://lkml.kernel.org/r/20190314054651.1315-1-kjlu@umn.edu
Diffstat (limited to 'Documentation/padata.txt')
0 files changed, 0 insertions, 0 deletions