Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6bcfd1a authored by Linus Torvalds's avatar Linus Torvalds
Browse files
* '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
parents 8ea3f0af 6939a5ac
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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: