aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/socfpga-a10.c
diff options
context:
space:
mode:
authorKangjie Lu <[email protected]>2019-03-14 05:46:51 +0000
committerThomas Gleixner <[email protected]>2019-03-21 11:24:39 +0000
commit534c89c22e26b183d838294f0937ee092c82ad3a (patch)
treeade097458f4a14f6342fee6638a136c9690937d4 /drivers/fpga/socfpga-a10.c
parentx86/hpet: Prevent potential NULL pointer dereference (diff)
downloadkernel-534c89c22e26b183d838294f0937ee092c82ad3a.tar.gz
kernel-534c89c22e26b183d838294f0937ee092c82ad3a.zip
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Mukesh Ojha <[email protected]> Acked-by: "K. Y. Srinivasan" <[email protected]> Cc: [email protected] Cc: Haiyang Zhang <[email protected]> Cc: Stephen Hemminger <[email protected]> Cc: Sasha Levin <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/socfpga-a10.c')
0 files changed, 0 insertions, 0 deletions