[lkml]   [2010]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[061/103] drm/i915: Prevent module unload to avoid random memory corruption
    2.6.35-stable review patch.  If anyone has any objections, please let us know.


    From: Chris Wilson <>

    commit 6939a5aca7cfada279a24c307e772f33104fca20 upstream.

    The i915 driver has quite a few module unload bugs, the known ones at
    least have fixes that are targeting 2.6.37. However, in order to
    maintain a stable kernel, we should prevent this known random memory
    corruption following driver unload. This should have very low impact on
    normal users who are unlikely to need to unload the i915 driver.

    Suggested-by: Thomas Gleixner <>
    Acked-by: Daniel Vetter <>
    Signed-off-by: Chris Wilson <>
    Signed-off-by: Greg Kroah-Hartman <>

    drivers/gpu/drm/i915/i915_dma.c | 3 +++
    1 file changed, 3 insertions(+)

    --- a/drivers/gpu/drm/i915/i915_dma.c
    +++ b/drivers/gpu/drm/i915/i915_dma.c
    @@ -2222,6 +2222,9 @@ int i915_driver_load(struct drm_device *
    dev_priv->mchdev_lock = &mchdev_lock;

    + /* XXX Prevent module unload due to memory corruption bugs. */
    + __module_get(THIS_MODULE);
    return 0;


     \ /
      Last update: 2010-10-22 21:11    [W:0.029 / U:9.180 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site