diff options
| author | 2026-10-23 11:48:05 +0200 | |
|---|---|---|
| committer | 2026-10-28 08:11:21 -0700 | |
| commit | ed75528c095bc7760a3cf34a3f3e2ec7a59eb285 (patch) | |
| tree | 198c9b78d92c631cf7d482df13fe8fc977222c3e /scripts/Makefile.thinlto | |
| parent | nvme-multipath: avoid size_t underflow in ANA log bounds checks (diff) | |
nvme-pci: fix early boot hang with nvme.quirks parameter
Passing nvme.quirks on the kernel command line causes a silent boot
hang when the NVMe driver is compiled as a built-in module.
This happens because the parameter is currently registered using
module_param_cb(). For built-in modules, this macro flags the parameter
to be evaluated at initcall level -1. Consequently, quirks_param_set() is
called before the memory allocators are initialized.
Fix this by replacing module_param_cb() with device_param_cb(). This
defers the parameter parsing to initcall level 6, guaranteeing that
the system memory allocators are fully functional before the quirk
string is parsed and allocated.
Fixes: 7bb8c40f5ad8 ("nvme: add support for dynamic quirk configuration via module parameter")
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
