diff options
| author | David Rientjes <[email protected]> | 2019-07-10 02:44:03 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2019-07-16 21:13:48 +0000 |
| commit | e74bd96989dd42a51a73eddb4a5510a6f5e42ac3 (patch) | |
| tree | 35033c04f4bcca7a1b9ca564875b7faca6bd5cc6 /tools/perf/scripts/python/compaction-times.py | |
| parent | Revert "x86/ptrace: Prevent ptrace from clearing the FS/GS selector" and fix ... (diff) | |
| download | kernel-e74bd96989dd42a51a73eddb4a5510a6f5e42ac3.tar.gz kernel-e74bd96989dd42a51a73eddb4a5510a6f5e42ac3.zip | |
x86/boot: Fix memory leak in default_get_smp_config()
When default_get_smp_config() is called with early == 1 and mpf->feature1
is non-zero, mpf is leaked because the return path does not do
early_memunmap().
Fix this and share a common exit routine.
Fixes: 5997efb96756 ("x86/boot: Use memremap() to map the MPF and MPC data")
Reported-by: Cfir Cohen <[email protected]>
Signed-off-by: David Rientjes <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions
