diff options
Diffstat (limited to 'arch/frv/mm/highmem.c')
| -rw-r--r-- | arch/frv/mm/highmem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/frv/mm/highmem.c b/arch/frv/mm/highmem.c index 61088dcc1594..fd7fcd4c2e33 100644 --- a/arch/frv/mm/highmem.c +++ b/arch/frv/mm/highmem.c | |||
| @@ -68,7 +68,7 @@ EXPORT_SYMBOL(__kmap_atomic); | |||
| 68 | 68 | ||
| 69 | void __kunmap_atomic(void *kvaddr) | 69 | void __kunmap_atomic(void *kvaddr) |
| 70 | { | 70 | { |
| 71 | int type = kmap_atomic_idx_pop(); | 71 | int type = kmap_atomic_idx(); |
| 72 | switch (type) { | 72 | switch (type) { |
| 73 | case 0: __kunmap_atomic_primary(4, 6); break; | 73 | case 0: __kunmap_atomic_primary(4, 6); break; |
| 74 | case 1: __kunmap_atomic_primary(5, 7); break; | 74 | case 1: __kunmap_atomic_primary(5, 7); break; |
| @@ -83,6 +83,7 @@ void __kunmap_atomic(void *kvaddr) | |||
| 83 | default: | 83 | default: |
| 84 | BUG(); | 84 | BUG(); |
| 85 | } | 85 | } |
| 86 | kmap_atomic_idx_pop(); | ||
| 86 | pagefault_enable(); | 87 | pagefault_enable(); |
| 87 | } | 88 | } |
| 88 | EXPORT_SYMBOL(__kunmap_atomic); | 89 | EXPORT_SYMBOL(__kunmap_atomic); |
