diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-06 21:27:48 +0000 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-06 21:27:48 +0000 |
commit | 8a96646bdd6d5f91b2288cca68f3e552229e1b21 (patch) | |
tree | c3da3305384eab96552b2212b7d91ec45c297c3e /sys/dev | |
parent | 4f3ff976f5fd90f2401eddf2c81d3226c7de45ed (diff) |
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 <ian@osmora.org>
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/ahci.c | 2 | ||||
-rw-r--r-- | sys/dev/ic/nvme.c | 2 |
2 files changed, 2 insertions, 2 deletions
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"); |