summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/radeon_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/drm/radeon_drv.c')
-rw-r--r--sys/dev/drm/radeon_drv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/drm/radeon_drv.c b/sys/dev/drm/radeon_drv.c
index 5a44093..caddf1e 100644
--- a/sys/dev/drm/radeon_drv.c
+++ b/sys/dev/drm/radeon_drv.c
@@ -92,7 +92,9 @@ radeon_attach(device_t nbdev)
bzero(dev, sizeof(struct drm_device));
- dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, M_NOWAIT | M_ZERO);
+ dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM,
+ M_WAITOK | M_ZERO);
+
radeon_configure(dev);
return drm_attach(nbdev, radeon_pciidlist);
OpenPOWER on IntegriCloud