]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/pcmcia/cistpl.c
PCI: PM: Skip devices in D0 for suspend-to-idle
[mirror_ubuntu-bionic-kernel.git] / drivers / pcmcia / cistpl.c
index 102646fedb5602b94c7f223aa4b2ffe32d5f25e0..e46c948d724659ff157605a0af50a550063bd9e8 100644 (file)
@@ -1578,6 +1578,9 @@ static ssize_t pccard_store_cis(struct file *filp, struct kobject *kobj,
        struct pcmcia_socket *s;
        int error;
 
+       if (kernel_is_locked_down("Direct PCMCIA CIS storage"))
+               return -EPERM;
+
        s = to_socket(container_of(kobj, struct device, kobj));
 
        if (off)