drm/radeon/kms: Avoid crash when trying to cleanup uninitialized structure
commit0a0c7596c643239e8d4c3eaaba43b74a96f2411e
authorJerome Glisse <jglisse@redhat.com>
Fri, 11 Dec 2009 19:36:19 +0000 (11 20:36 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Dec 2009 01:14:04 +0000 (23 11:14 +1000)
treebb387597d7c8260a8cd2a18235cde90cc72c757d
parentd2efdf6d6f425950a61fa5cc3aa22e6718e7f3c8
drm/radeon/kms: Avoid crash when trying to cleanup uninitialized structure

Add boolean to record if some part of the driver are initialized or
not this allow to avoid a crash when trying to cleanup uninitialized
structure members.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_fence.c
drivers/gpu/drm/radeon/radeon_ttm.c