diff options
Diffstat (limited to 'lib/ioremap.c')
| -rw-r--r-- | lib/ioremap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ioremap.c b/lib/ioremap.c index 4bb30206b942..b808a390e4c3 100644 --- a/lib/ioremap.c +++ b/lib/ioremap.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | ||
| 1 | /* | 2 | /* |
| 2 | * Re-map IO memory to kernel address space so that we can access it. | 3 | * Re-map IO memory to kernel address space so that we can access it. |
| 3 | * This is needed for high PCI addresses that aren't mapped in the | 4 | * This is needed for high PCI addresses that aren't mapped in the |
| @@ -161,6 +162,7 @@ int ioremap_page_range(unsigned long addr, | |||
| 161 | unsigned long next; | 162 | unsigned long next; |
| 162 | int err; | 163 | int err; |
| 163 | 164 | ||
| 165 | might_sleep(); | ||
| 164 | BUG_ON(addr >= end); | 166 | BUG_ON(addr >= end); |
| 165 | 167 | ||
| 166 | start = addr; | 168 | start = addr; |
