Files
android_kernel_xiaomi_sm8450/arch/mips
Matt Redfearn 4736697963 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: 405bc8fd12 ("MIPS: Kernel: Implement KASLR using CONFIG_RELOCATABLE")
Cc: stable@vger.kernel.org # 4.7+
Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14414/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2016-11-04 00:30:49 +01:00
..
2016-02-19 09:51:43 +01:00
2016-10-06 17:31:02 +02:00
2016-11-04 00:27:27 +01:00
2016-08-03 08:16:30 +02:00
2013-11-26 12:12:27 +01:00
2016-04-03 12:32:09 +02:00
2016-10-19 08:39:47 -07:00
2016-10-06 18:01:28 +02:00
2016-05-28 12:35:09 +02:00
2016-10-04 16:13:57 +02:00
2016-05-28 12:35:09 +02:00
2015-11-11 08:36:36 +01:00