summaryrefslogtreecommitdiffstats
path: root/debian/patches-rt/panic-disable-random-on-rt.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches-rt/panic-disable-random-on-rt.patch')
-rw-r--r--debian/patches-rt/panic-disable-random-on-rt.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/patches-rt/panic-disable-random-on-rt.patch b/debian/patches-rt/panic-disable-random-on-rt.patch
index 28e300c45..92d98d189 100644
--- a/debian/patches-rt/panic-disable-random-on-rt.patch
+++ b/debian/patches-rt/panic-disable-random-on-rt.patch
@@ -1,7 +1,7 @@
From: Thomas Gleixner <tglx@linutronix.de>
Date: Tue, 14 Jul 2015 14:26:34 +0200
Subject: panic: skip get_random_bytes for RT_FULL in init_oops_id
-Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.2/older/patches-5.2.17-rt9.tar.xz
+Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.4/older/patches-5.4.3-rt1.tar.xz
Disable on -RT. If this is invoked from irq-context we will have problems
to acquire the sleeping lock.
@@ -13,11 +13,11 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
--- a/kernel/panic.c
+++ b/kernel/panic.c
-@@ -512,9 +512,11 @@ static u64 oops_id;
+@@ -521,9 +521,11 @@ static u64 oops_id;
static int init_oops_id(void)
{
-+#ifndef CONFIG_PREEMPT_RT_FULL
++#ifndef CONFIG_PREEMPT_RT
if (!oops_id)
get_random_bytes(&oops_id, sizeof(oops_id));
else