]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - lib/ioremap.c
x86/pkeys: Update documentation about availability
[mirror_ubuntu-bionic-kernel.git] / lib / ioremap.c
index 4bb30206b9426f1fcece4324cc0dfe76b8855c65..b808a390e4c3e32d2789b059ab7752c6d533d7a3 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Re-map IO memory to kernel address space so that we can access it.
  * This is needed for high PCI addresses that aren't mapped in the
@@ -161,6 +162,7 @@ int ioremap_page_range(unsigned long addr,
        unsigned long next;
        int err;
 
+       might_sleep();
        BUG_ON(addr >= end);
 
        start = addr;