diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-09 18:43:40 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-09 18:43:40 (GMT) |
commit | d6bcfd1a214ae9609b27417b1844c6b6f09ca125 (patch) | |
tree | 35555b713c6b013d87f2e0dd7a27723ba597c4a2 | |
parent | 8ea3f0afb23bc49a996f262ea04708b38de82bca (diff) | |
parent | 6939a5aca7cfada279a24c307e772f33104fca20 (diff) | |
download | linux-fsl-qoriq-d6bcfd1a214ae9609b27417b1844c6b6f09ca125.tar.xz |
Merge branch 'drm-intel-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel
* 'drm-intel-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel:
drm/i915: Prevent module unload to avoid random memory corruption
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index c74e4e8..2dd2c93 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -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: |