Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 046d669c authored by Krzysztof Kolasa's avatar Krzysztof Kolasa Committed by Dave Airlie
Browse files

[PATCH] drm/mm: Fix support 4 GiB and larger ranges



bad argument if(tmp)... in check_free_hole

fix oops: kernel BUG at drivers/gpu/drm/drm_mm.c:305!

[airlied: excellent, this was my task for today].

Signed-off-by: default avatarKrzysztof Kolasa <kkolasa@winsoft.pl>
Reviewed-by: default avatarChris wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 6981e2af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -403,7 +403,7 @@ static int check_free_hole(u64 start, u64 end, u64 size, unsigned alignment)
		unsigned rem;

		rem = do_div(tmp, alignment);
		if (tmp)
		if (rem)
			start += alignment - rem;
	}