drm/radeon/kms: Fix NULL ptr dereference
commit4a04a844ba0c09b5641bf2ebd9f9517aa76e52fb
authorJerome Glisse <jglisse@redhat.com>
Wed, 9 Dec 2009 16:39:16 +0000 (9 17:39 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 10 Dec 2009 05:09:06 +0000 (10 15:09 +1000)
treeb859af52ab72db2632e0d7da7cc0cf6552f3d136
parentb27b63750d912e80d61d2120c4a1664062d0f808
drm/radeon/kms: Fix NULL ptr dereference

radeon_atombios_fini might be call while there is not valid
atombios structure allocated, thus test for a not null ptr
before trying to access this structure.

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