summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-08-19 11:39:57 +0200
committerDave Airlie <airlied@redhat.com>2010-08-20 00:48:34 +0200
commit161c48100236916e98d33a9c8b5fc8eae6decd15 (patch)
tree525970734ddc19c562d4740f35656cbe1583e42a /drivers/gpu/drm
parentdrm/radeon/kms: rework radeon_dp_detect() logic (diff)
downloadlinux-161c48100236916e98d33a9c8b5fc8eae6decd15.tar.xz
linux-161c48100236916e98d33a9c8b5fc8eae6decd15.zip
drm: fix end of loop test
"agpmem" is never NULL here because it is the list cursor of a list_for_each_entry() list. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/drm_vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c
index 3778360eceea..fda67468e603 100644
--- a/drivers/gpu/drm/drm_vm.c
+++ b/drivers/gpu/drm/drm_vm.c
@@ -138,7 +138,7 @@ static int drm_do_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
break;
}
- if (!agpmem)
+ if (&agpmem->head == &dev->agp->memory)
goto vm_fault_error;
/*