]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms: make sure rio_mem is valid before unmapping it
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 8 Jul 2010 16:24:52 +0000 (12:24 -0400)
committerDave Airlie <airlied@redhat.com>
Mon, 2 Aug 2010 04:21:37 +0000 (14:21 +1000)
commit08d7bc59ab045fd445f110277af06796dbb50761
tree4e4cfde94b3bad76009b6b021b90188b92bba30f
parenta9727b10bf72fa95b6fa73d6992b85520760a881
drm/radeon/kms: make sure rio_mem is valid before unmapping it

If we were not able to map the io bar in device init, don't attempt
to unmap it in device fini.  All radeons should have a io bar, so
I doubt this would ever trigger, but just to be on the safe side...

Pointed out by: Alberto Milone <alberto.milone@canonical.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_device.c