commit | 161c48100236916e98d33a9c8b5fc8eae6decd15 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <error27@gmail.com> | Thu Aug 19 11:39:57 2010 +0200 |
committer | Dave Airlie <airlied@redhat.com> | Fri Aug 20 08:48:34 2010 +1000 |
tree | 525970734ddc19c562d4740f35656cbe1583e42a | |
parent | 6f50eae75b13e037e11f49128ea44a1a9a9535cb [diff] |
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>
diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c index 3778360..fda6746 100644 --- a/drivers/gpu/drm/drm_vm.c +++ b/drivers/gpu/drm/drm_vm.c
@@ -138,7 +138,7 @@ break; } - if (!agpmem) + if (&agpmem->head == &dev->agp->memory) goto vm_fault_error; /*