mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
panic: skip get_random_bytes for RT_FULL in init_oops_id
Disable on -RT. If this is invoked from irq-context we will have problems to acquire the sleeping lock. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
d85db9c7a2
commit
c98f9554a2
|
|
@ -544,9 +544,11 @@ static u64 oops_id;
|
|||
|
||||
static int init_oops_id(void)
|
||||
{
|
||||
#ifndef CONFIG_PREEMPT_RT
|
||||
if (!oops_id)
|
||||
get_random_bytes(&oops_id, sizeof(oops_id));
|
||||
else
|
||||
#endif
|
||||
oops_id++;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user