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

No differences found