diff options
author | Kangjie Lu <[email protected]> | 2019-03-14 00:46:51 -0500 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2019-03-21 12:24:39 +0100 |
commit | 534c89c22e26b183d838294f0937ee092c82ad3a (patch) | |
tree | ade097458f4a14f6342fee6638a136c9690937d4 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2e84f116afca3719c9d0a1a78b47b48f75fd5724 (diff) |
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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions