]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Release gvt->lock at the failure of finding page track
authorXiong Zhang <xiong.y.zhang@intel.com>
Mon, 5 Mar 2018 22:07:27 +0000 (06:07 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 6 Mar 2018 06:49:24 +0000 (14:49 +0800)
commit3fa62fcf6162ad0d5c7905ea3d26e70b96af399e
tree495e4e62ea334ef98e3da7d89ef9f272057662c1
parent681ea8160bb6c9e8b9c82d595e77d89a965cbfb4
drm/i915/gvt: Release gvt->lock at the failure of finding page track

page_track_handler take lock at the beginning, the lock should be released
at the failure of finding page track. Otherwise deadlock will happen.

Fixes: fef62ce55005 ("drm/i915/gvt: Provide generic page_track infrastructure for write-protected page")
Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/page_track.c