Browse Source

Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux

Pull drm fix from Dave Airlie:
 "An oops snuck in in an -rc3 patch, this fixes it"

* 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
  [PATCH] drm/mm: Fix support 4 GiB and larger ranges
Linus Torvalds 10 years ago
parent
commit
08352086de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpu/drm/drm_mm.c

+ 1 - 1
drivers/gpu/drm/drm_mm.c

@@ -403,7 +403,7 @@ static int check_free_hole(u64 start, u64 end, u64 size, unsigned alignment)
 		unsigned rem;
 		unsigned rem;
 
 
 		rem = do_div(tmp, alignment);
 		rem = do_div(tmp, alignment);
-		if (tmp)
+		if (rem)
 			start += alignment - rem;
 			start += alignment - rem;
 	}
 	}