diff options
Diffstat (limited to 'drivers/char/agp')
-rw-r--r-- | drivers/char/agp/intel-gtt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c index b7c0c7ee67c..e921b693412 100644 --- a/drivers/char/agp/intel-gtt.c +++ b/drivers/char/agp/intel-gtt.c | |||
@@ -1000,14 +1000,14 @@ static int intel_fake_agp_remove_entries(struct agp_memory *mem, | |||
1000 | if (mem->page_count == 0) | 1000 | if (mem->page_count == 0) |
1001 | return 0; | 1001 | return 0; |
1002 | 1002 | ||
1003 | intel_gtt_clear_range(pg_start, mem->page_count); | ||
1004 | |||
1003 | if (intel_private.base.needs_dmar) { | 1005 | if (intel_private.base.needs_dmar) { |
1004 | intel_gtt_unmap_memory(mem->sg_list, mem->num_sg); | 1006 | intel_gtt_unmap_memory(mem->sg_list, mem->num_sg); |
1005 | mem->sg_list = NULL; | 1007 | mem->sg_list = NULL; |
1006 | mem->num_sg = 0; | 1008 | mem->num_sg = 0; |
1007 | } | 1009 | } |
1008 | 1010 | ||
1009 | intel_gtt_clear_range(pg_start, mem->page_count); | ||
1010 | |||
1011 | return 0; | 1011 | return 0; |
1012 | } | 1012 | } |
1013 | 1013 | ||