]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/gpu/drm/i915/i915_dma.c
drm/i915: Prevent module unload to avoid random memory corruption
[net-next-2.6.git] / drivers / gpu / drm / i915 / i915_dma.c
index c74e4e8006d4b28e02ae9fb44ee11f491e130775..2dd2c93ebfa35dace7916b38c6df18c835161978 100644 (file)
@@ -2231,6 +2231,9 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
        dev_priv->mchdev_lock = &mchdev_lock;
        spin_unlock(&mchdev_lock);
 
+       /* XXX Prevent module unload due to memory corruption bugs. */
+       __module_get(THIS_MODULE);
+
        return 0;
 
 out_workqueue_free: