Patchwork [3.5.y.z,extended,stable] Patch "drm/radeon: cleanup properly if mmio mapping fails" has been added to staging queue

mail settings
Submitter Luis Henriques
Date May 15, 2013, 10:33 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/243986/
State New
Headers show


Luis Henriques - May 15, 2013, 10:33 a.m.
This is a note to let you know that I have just added a patch titled

    drm/radeon: cleanup properly if mmio mapping fails

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see



From 4eb1f4e3cc3e75e47c3368b4230a36d4e7aa5253 Mon Sep 17 00:00:00 2001
From: Alex Deucher <>
Date: Fri, 12 Apr 2013 19:15:52 -0400
Subject: [PATCH] drm/radeon: cleanup properly if mmio mapping fails

commit 0cd9cb76ae26a19df21abc6f94f5fff141e689c7 upstream.

If we fail to map the mmio BAR, skip driver tear down
that requires mmio.

Should fix:

Signed-off-by: Alex Deucher <>
[ luis: adjust context ]
Signed-off-by: Luis Henriques <>
 drivers/gpu/drm/radeon/radeon_kms.c | 4 ++++
 1 file changed, 4 insertions(+)



diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c
index 5c58d7d..c574139 100644
--- a/drivers/gpu/drm/radeon/radeon_kms.c
+++ b/drivers/gpu/drm/radeon/radeon_kms.c
@@ -39,8 +39,12 @@  int radeon_driver_unload_kms(struct drm_device *dev)

 	if (rdev == NULL)
 		return 0;
+	if (rdev->rmmio == NULL)
+		goto done_free;
 	dev->dev_private = NULL;
 	return 0;