kernel - Fix early boot interrupt race
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 19 Sep 2018 23:51:50 +0000 (16:51 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 19 Sep 2018 23:51:50 +0000 (16:51 -0700)
commit94fd1ee9015cf6f3ded2524896171e4fe96f2b85
treea9f127e8db4f84c81be4d1825219c708f55663fc
parent3a2096e8e9e6a169d2b3e1eaa595e1af6c3582db
kernel - Fix early boot interrupt race

* Fix a null pointer dereference panic due to an interrupt
  race during early boot.  Interrupts are enabled before
  intr_block is allocated, so intr_block can be NULL.

* Refactor the kmalloc() for intr_block to only allocate the
  space needed for ncpus.
sys/kern/kern_intr.c