diff options
author | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2006-09-08 17:24:38 +0200 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2006-09-08 17:24:38 +0200 |
commit | 99acb7936660843090ea8a9f22d2d50d9433e0de (patch) | |
tree | 99044a2f889da0354027a59561bbbdf8896fcc18 /linux-core/drm_compat.c | |
parent | e3f54ecdd9d266607afd7d8b62960b2154b63e9d (diff) |
Various bugfixes.
Diffstat (limited to 'linux-core/drm_compat.c')
-rw-r--r-- | linux-core/drm_compat.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linux-core/drm_compat.c b/linux-core/drm_compat.c index 86bae306..162e4656 100644 --- a/linux-core/drm_compat.c +++ b/linux-core/drm_compat.c @@ -59,9 +59,14 @@ static inline void change_pte_range(struct mm_struct *mm, pmd_t * pmd, do { if (pte_present(*pte)) { pte_t ptent; - ptent = *pte; ptep_get_and_clear(mm, addr, pte); + ptent = *pte; lazy_mmu_prot_update(ptent); + } else { + ptep_get_and_clear(mm, addr, pte); + } + if (!pte_none(*pte)) { + DRM_ERROR("Ugh. Pte was presen\n"); } } while (pte++, addr += PAGE_SIZE, addr != end); pte_unmap(pte - 1); |