drm/radeon/kms: fix oops when set_base is call with no FB
authorJerome Glisse <jglisse@redhat.com>
Tue, 17 Nov 2009 22:08:55 +0000 (14:08 -0800)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Dec 2009 01:37:08 +0000 (11:37 +1000)
commit2de3b4841f67a15c7b8e820b84dd6b7cc41370da
treea1341ed009c1d1f82952731efad67d078a4a4d92
parentfd874ad0a0dcf715333a3f3564c6486a3a90bb22
drm/radeon/kms: fix oops when set_base is call with no FB

Just do nothing if crct_set_base() is called with no FB.

The oops happens when the user switches between X & vt or in some case
when changing mode.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atombios_crtc.c
drivers/gpu/drm/radeon/radeon_legacy_crtc.c