diff options
| -rw-r--r-- | arch/parisc/include/asm/pgalloc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/parisc/include/asm/pgalloc.h b/arch/parisc/include/asm/pgalloc.h index 3a08eae3318f..3edbb9fc91b4 100644 --- a/arch/parisc/include/asm/pgalloc.h +++ b/arch/parisc/include/asm/pgalloc.h | |||
| @@ -72,7 +72,7 @@ static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) | |||
| 72 | 72 | ||
| 73 | static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) | 73 | static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) |
| 74 | { | 74 | { |
| 75 | if(pmd_flag(*pmd) & PxD_FLAG_ATTACHED) | 75 | if (pmd_flag(*pmd) & PxD_FLAG_ATTACHED) { |
| 76 | /* | 76 | /* |
| 77 | * This is the permanent pmd attached to the pgd; | 77 | * This is the permanent pmd attached to the pgd; |
| 78 | * cannot free it. | 78 | * cannot free it. |
| @@ -81,6 +81,7 @@ static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) | |||
| 81 | */ | 81 | */ |
| 82 | mm_inc_nr_pmds(mm); | 82 | mm_inc_nr_pmds(mm); |
| 83 | return; | 83 | return; |
| 84 | } | ||
| 84 | free_pages((unsigned long)pmd, PMD_ORDER); | 85 | free_pages((unsigned long)pmd, PMD_ORDER); |
| 85 | } | 86 | } |
| 86 | 87 | ||
