From 8a96646bdd6d5f91b2288cca68f3e552229e1b21 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 6 Jul 2025 21:27:48 +0000 Subject: kernel: Do not defer storage driver init Early userspace *may* rely on storage drivers. If they attempt to access them before they are set up, things can go south. Signed-off-by: Ian Moffett --- sys/dev/ic/ahci.c | 2 +- sys/dev/ic/nvme.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/ahci.c b/sys/dev/ic/ahci.c index e978036..7e4a001 100644 --- a/sys/dev/ic/ahci.c +++ b/sys/dev/ic/ahci.c @@ -1040,4 +1040,4 @@ static struct bdevsw ahci_bdevsw = { .bsize = ahci_dev_bsize }; -DRIVER_DEFER(ahci_init, "ahci"); +DRIVER_EXPORT(ahci_init, "ahci"); diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index 147ab4f..cae99f5 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -662,4 +662,4 @@ static struct bdevsw nvme_bdevsw = { .write = nowrite }; -DRIVER_DEFER(nvme_init, "nvme"); +DRIVER_EXPORT(nvme_init, "nvme"); -- cgit v1.2.3