• Daniel Vetter's avatar
    drm/i915: fixup overlay stolen memory leak · 4d7bb011
    Daniel Vetter authored
    We need to clean up the overlay first, before taking down the
    stolen memory allocator.
    
    This regression has been introducec in
    
    commit 80405138
    Author: Chris Wilson <chris@chris-wilson.co.uk>
    Date:   Thu Nov 15 11:32:29 2012 +0000
    
        drm/i915: Allocate overlay registers from stolen memory
    
    v2: Rework the patch a bit as suggested by Chris Wilson:
    - move the overlay teardown up, into the modeset cleanup
    - move the stolen mm takedown into i915_gem_cleanup_stolen
    
    Cc: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    4d7bb011
i915_gem_stolen.c 8.91 KB