drm/radeon/kms: Forbid creation of framebuffer with no valid GEM object
commit7e71c9e2e7704ebf044d4a964e02fbd2098a173f
authorJerome Glisse <jglisse@redhat.com>
Sun, 17 Jan 2010 20:21:41 +0000 (17 21:21 +0100)
committerDave Airlie <airlied@linux.ie>
Wed, 20 Jan 2010 22:46:27 +0000 (21 08:46 +1000)
treef0231cd483dc1f4e6521b46802169baee4fda054
parent7924e5eb8fe422d6b1ce3b3e2be749a480dfcdd9
drm/radeon/kms: Forbid creation of framebuffer with no valid GEM object

This will avoid oops if at later point the fb is use. Trying to create
a framebuffer with no valid GEM object is bogus and should be forbidden
as this patch does.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/radeon/radeon_display.c