Commit 6c1e851c authored by Theodore Ts'o's avatar Theodore Ts'o

random: fix possible sleeping allocation from irq context

We can do a sleeping allocation from an irq context when CONFIG_NUMA
is enabled.  Fix this by initializing the NUMA crng instances in a
Reported-by: default avatarTetsuo Handa <>
Fixes: 8ef35c86 ("random: set up the NUMA crng instances...")
Signed-off-by: default avatarTheodore Ts'o <>
parent d848e5f8
......@@ -789,7 +789,7 @@ static void crng_initialize(struct crng_state *crng)
static void numa_crng_init(void)
static void do_numa_crng_init(struct work_struct *work)
int i;
struct crng_state *crng;
......@@ -810,6 +810,13 @@ static void numa_crng_init(void)
static DECLARE_WORK(numa_crng_init_work, do_numa_crng_init);
static void numa_crng_init(void)
static void numa_crng_init(void) {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment