diff options
author | Jerome Glisse <jglisse@redhat.com> | 2009-12-11 22:36:19 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-23 04:14:04 +0300 |
commit | 0a0c7596c643239e8d4c3eaaba43b74a96f2411e (patch) | |
tree | bb387597d7c8260a8cd2a18235cde90cc72c757d /drivers/gpu/drm/radeon/radeon.h | |
parent | d2efdf6d6f425950a61fa5cc3aa22e6718e7f3c8 (diff) | |
download | linux-0a0c7596c643239e8d4c3eaaba43b74a96f2411e.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index cd650fd3964e..53b55608102b 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -162,6 +162,7 @@ struct radeon_fence_driver { struct list_head created; struct list_head emited; struct list_head signaled; + bool initialized; }; struct radeon_fence { @@ -202,8 +203,9 @@ struct radeon_surface_reg { struct radeon_mman { struct ttm_bo_global_ref bo_global_ref; struct ttm_global_reference mem_global_ref; - bool mem_global_referenced; struct ttm_bo_device bdev; + bool mem_global_referenced; + bool initialized; }; struct radeon_bo { |