diff options
author | Jerome Glisse <jglisse@redhat.com> | 2010-03-17 14:44:29 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-03-31 13:11:42 +1000 |
commit | f9274562026558ab54a29331cf13e9ebec8cc890 (patch) | |
tree | 63088dab34efe13e0e23b769fa92d26e8600fe34 /drivers/gpu/drm/radeon/r100.c | |
parent | 97f23b3d85a4d734a8584dade3a34579931c8f8d (diff) | |
download | lwn-f9274562026558ab54a29331cf13e9ebec8cc890.tar.gz lwn-f9274562026558ab54a29331cf13e9ebec8cc890.zip |
drm/radeon/kms: avoid possible oops (call gart_fini before gart_disable)
radeon_gart_fini might call GART unbind callback function which
might try to access GART table but if gart_disable is call first
the GART table will be unmapped so any access to it will oops.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r100.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index e35cf1932829..739a44783ef5 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c @@ -236,9 +236,9 @@ int r100_pci_gart_set_page(struct radeon_device *rdev, int i, uint64_t addr) void r100_pci_gart_fini(struct radeon_device *rdev) { + radeon_gart_fini(rdev); r100_pci_gart_disable(rdev); radeon_gart_table_ram_free(rdev); - radeon_gart_fini(rdev); } int r100_irq_set(struct radeon_device *rdev) |