diff options
| author | Ingo Molnar <mingo@kernel.org> | 2017-11-10 02:21:08 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2017-11-10 02:21:08 -0500 |
| commit | b5cd3b51e247473e290be5cd09e77171e466cd89 (patch) | |
| tree | ac8c87e1b38f61a4c879c574dc9373db41f3df01 /lib/ioremap.c | |
| parent | 376f3bcebdc999cc737d9052109cc33b573b3a8b (diff) | |
| parent | 1c9dbd4615fd751e5e0b99807a3c7c8612e28e20 (diff) | |
Merge branch 'linus' into x86/platform, to refresh the branch
Signed-off-by: Ingo Molnar <mingo@kernel.org>
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; |
