]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: fix use after free for workload
authorChangbin Du <changbin.du@intel.com>
Thu, 5 Jan 2017 05:28:05 +0000 (13:28 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 9 Jan 2017 03:05:56 +0000 (11:05 +0800)
commit04db83359a4d3be9eea562f3e289e6f427413eb8
tree6b4481f7f856c56136a5a9617d06a2cf3de58647
parentc2b8d83d73818155e1d6555dc9e059041f2f90e3
drm/i915/gvt: fix use after free for workload

In the function workload_thread(), we invoke complete_current_workload()
to cleanup the just processed workload (workload will be freed there).
So we cannot access workload->req after that. This patch move
complete_current_workload() afterward.

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/scheduler.c