green a788068fed When the SYSINIT() was removed, it was replaced with a make_dev on-demand
creation of /dev/drum via calling swapon. However, the make_dev has a
bogus (insofar that it hasn't been added yet) cdevsw, so later we end
up crashing with a null pointer dereference on the swap vp's specinfo.
The specinfo points to a dev_t with a major of 254 (uninitialized), and
we get a crash on its d_strategy being called.

The simple solution to this is to call cdevsw_add before the make_dev
is ever used. This fixes the panic which occurred upon swapping.
1999-08-24 05:58:35 +00:00
..
1999-07-21 18:02:27 +00:00
1999-08-19 00:15:27 +00:00
1998-02-06 12:14:30 +00:00
1999-08-13 17:45:34 +00:00
1999-08-20 06:32:00 +00:00
1999-01-10 01:58:29 +00:00
1999-01-10 01:58:29 +00:00