summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2026-09-30 17:17:06 -0500
committerBjorn Helgaas <bhelgaas@google.com>2026-09-30 17:17:06 -0500
commit85b2f4dc03bfc4e32b43ce358d6a3ae0b6171325 (patch)
treef156af8589414d765c136a6303c7a5f5465def36 /drivers/pci
parent00ba8267fc17b0a768bbc49478d59a59d0e7ee86 (diff)
parent5ab17178fca6026d329cb6ced33c30f3b7d3e50a (diff)
downloadlinux-next-85b2f4dc03bfc4e32b43ce358d6a3ae0b6171325.tar.gz
linux-next-85b2f4dc03bfc4e32b43ce358d6a3ae0b6171325.zip
Merge branch 'pci/hotplug'
- Make the 'pciehp_poll_mode' parameter read-only to prevent changes via sysfs, which can cause errors when unbinding (Runyu Xiao) * pci/hotplug: PCI: pciehp: Make 'pciehp_poll_mode' parameter read-only
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/pciehp_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/pciehp_core.c b/drivers/pci/hotplug/pciehp_core.c
index 2cafd3b26f34..5ce32dc7e178 100644
--- a/drivers/pci/hotplug/pciehp_core.c
+++ b/drivers/pci/hotplug/pciehp_core.c
@@ -38,7 +38,7 @@ int pciehp_poll_time;
* not really modular, but the easiest way to keep compat with existing
* bootargs behaviour is to continue using module_param here.
*/
-module_param(pciehp_poll_mode, bool, 0644);
+module_param(pciehp_poll_mode, bool, 0444);
module_param(pciehp_poll_time, int, 0644);
MODULE_PARM_DESC(pciehp_poll_mode, "Using polling mechanism for hot-plug events or not");
MODULE_PARM_DESC(pciehp_poll_time, "Polling mechanism frequency, in seconds");