]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/fbc: __intel_fbc_cleanup_cfb() may be called multiple times
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 30 Jan 2020 13:51:36 +0000 (13:51 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 30 Jan 2020 17:22:29 +0000 (17:22 +0000)
commit1aaaa3c8fbe6945a3e1d93b46915be3e48eec78d
treec07885f888367dda140632426368033168c8f1ce
parent8d2ff68639b4c971d7d13f7f30e4539c64ce5dea
drm/i915/fbc: __intel_fbc_cleanup_cfb() may be called multiple times

Avoid releasing the same stolen nodes causing a use-after-free and/or
explosions as the self-checks fail, as __intel_fbc_cleanup_cfb() may be
called multiple times during module unload.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200130135136.1878646-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/display/intel_fbc.c