Commit 0f22e3e9 authored by Paul Mackerras's avatar Paul Mackerras

PPC32: Use might_sleep() in kmap().

parent 6e7924cf
...@@ -54,8 +54,7 @@ extern void kunmap_high(struct page *page); ...@@ -54,8 +54,7 @@ extern void kunmap_high(struct page *page);
static inline void *kmap(struct page *page) static inline void *kmap(struct page *page)
{ {
if (in_interrupt()) might_sleep();
BUG();
if (page < highmem_start_page) if (page < highmem_start_page)
return page_address(page); return page_address(page);
return kmap_high(page); return kmap_high(page);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment