drm/radeon/kms: forbid big bo allocation (fdo 31708) v3
commit93225b0d7bc030f4a93165347a65893685822d70
authorJerome Glisse <jglisse@redhat.com>
Fri, 3 Dec 2010 21:38:19 +0000 (3 16:38 -0500)
committerDave Airlie <airlied@redhat.com>
Tue, 7 Dec 2010 23:33:41 +0000 (8 09:33 +1000)
tree86e3dda44c3b327f91e2fcc2355f35639a4aab53
parent541cc966915b6756e54c20eebe60ae957afdb537
drm/radeon/kms: forbid big bo allocation (fdo 31708) v3

Forbid allocating buffer bigger than visible VRAM or GTT, also
properly set lpfn field.

v2 - use max macro
   - silence warning
v3 - don't explicitly set range limit
   - use min macro

Cc: stable <stable@kernel.org>
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_object.c