summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-04-20 03:10:54 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-04-20 03:10:54 +0000
commit41417eb24ed40c76b7dab1622c14cd8ce5092e73 (patch)
treee1f488111d82bcc55a5de3c8f4ac7ded96575f92 /sys/dev
parent452af8ba219e56405ef7fca02ecd57bd1c805595 (diff)
Adapt radeondrm_detach_kms() to struct drm_device being split from
drm softc. Avoids uvm_fault() when firmware is missing and radeondrm is forcibly detached. Reported by Mihai Popescu on misc@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/radeon/radeon_kms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_kms.c b/sys/dev/pci/drm/radeon/radeon_kms.c
index 21ef9aae2c2..3fb81fa4222 100644
--- a/sys/dev/pci/drm/radeon/radeon_kms.c
+++ b/sys/dev/pci/drm/radeon/radeon_kms.c
@@ -156,7 +156,7 @@ radeondrm_detach_kms(struct device *self, int flags)
radeon_device_fini(rdev);
if (rdev->ddev != NULL) {
- config_detach((struct device *)rdev->ddev, flags);
+ config_detach(rdev->ddev->dev, flags);
rdev->ddev = NULL;
}