summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/i915_init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shared-core/i915_init.c b/shared-core/i915_init.c
index ce6f1656..53574eb7 100644
--- a/shared-core/i915_init.c
+++ b/shared-core/i915_init.c
@@ -265,7 +265,10 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
drm_mm_print(&dev->bm.man[DRM_BO_MEM_VRAM].manager, "VRAM");
drm_mm_print(&dev->bm.man[DRM_BO_MEM_TT].manager, "TT");
- dev->devname = DRIVER_NAME;
+ dev->devname = kstrdup(DRIVER_NAME, GFP_KERNEL);
+ if (!dev->devname)
+ return -ENOMEM;
+
drm_irq_install(dev);
}