Skip to content

Commit

Permalink
drivers/gpu/drm/drm_memory.c: fix check for end of loop
Browse files Browse the repository at this point in the history
"agpmem" is never NULL here.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: Eric Anholt <eric@anholt.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dan Carpenter authored and Dave Airlie committed Apr 28, 2010
1 parent 22fb573 commit 404b017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static void *agp_remap(unsigned long offset, unsigned long size,
&& (agpmem->bound + (agpmem->pages << PAGE_SHIFT)) >=
(offset + size))
break;
if (!agpmem)
if (&agpmem->head == &dev->agp->memory)
return NULL;

/*
Expand Down

0 comments on commit 404b017

Please sign in to comment.