diff options
author | Matt Redfearn <[email protected]> | 2016-10-17 17:21:46 +0100 |
---|---|---|
committer | Ralf Baechle <[email protected]> | 2016-11-04 00:30:49 +0100 |
commit | 4736697963385e6257ee8e260e97347e858cd962 (patch) | |
tree | 31a16594af6cbdf511dadea88664a213e44a52d8 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 93032e31a5f12df847639db3ad0b7f300bf44b7b (diff) |
MIPS: KASLR: Fix handling of NULL FDT
If platform code returns a NULL pointer to the FDT, initial_boot_params
will not get set to a valid pointer and attempting to find the /chosen
node in it will cause a NULL pointer dereference and the kernel to crash
immediately on startup - with no output to the console.
Fix this by checking that initial_boot_params is valid before using it.
Fixes: 405bc8fd12f5 ("MIPS: Kernel: Implement KASLR using CONFIG_RELOCATABLE")
Cc: [email protected] # 4.7+
Signed-off-by: Matt Redfearn <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/14414/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions