diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-06-22 19:02:11 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2017-07-10 10:33:03 +0300 |
commit | 7581d5ca2bb269cfc2ce2d0cb489aac513167f6b (patch) | |
tree | e2008a10d5fad5fa155dcc9b3459a6c41200f6d5 /drivers/gpu/drm/atmel-hlcdc | |
parent | 04941829b0049d2446c7042ab9686dd057d809a6 (diff) | |
download | linux-7581d5ca2bb269cfc2ce2d0cb489aac513167f6b.tar.xz |
drm/i915/fbdev: Check for existence of ifbdev->vma before operations
Commit fabef825626d ("drm/i915: Drop struct_mutex around frontbuffer
flushes") adds a dependency to ifbdev->vma when flushing the framebufer,
but the checks are only against the existence of the ifbdev->fb and not
against ifbdev->vma. This leaves a window of opportunity where we may
try to operate on the fbdev prior to it being probed (thanks to
asynchronous booting).
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101534
Fixes: fabef825626d ("drm/i915: Drop struct_mutex around frontbuffer flushes")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170622160211.783-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: stable@vger.kernel.org
(cherry picked from commit 15727ed0d944ce1dec8b9e1082dd3df29a0fdf44)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/atmel-hlcdc')
0 files changed, 0 insertions, 0 deletions