diff options
author | Dave Airlie | 2019-08-16 04:41:52 +0200 |
---|---|---|
committer | Dave Airlie | 2019-08-16 04:41:52 +0200 |
commit | a85abd5d45adba75535b7fc6d9f78329a693b7a9 (patch) | |
tree | 7e25432885fcebb81be1141741eb210828079109 /drivers/gpu | |
parent | Merge tag 'drm-fixes-5.3-2019-08-14' of git://people.freedesktop.org/~agd5f/l... (diff) | |
parent | Merge tag 'gvt-fixes-2019-08-13' of https://github.com/intel/gvt-linux into d... (diff) | |
download | kernel-qcow2-linux-a85abd5d45adba75535b7fc6d9f78329a693b7a9.tar.gz kernel-qcow2-linux-a85abd5d45adba75535b7fc6d9f78329a693b7a9.tar.xz kernel-qcow2-linux-a85abd5d45adba75535b7fc6d9f78329a693b7a9.zip |
Merge tag 'drm-intel-fixes-2019-08-15' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
drm/i915 fixes for v5.4-rc5:
- GVT use-after-free fix
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/87zhkag9ic.fsf@intel.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/scheduler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/gvt/scheduler.c b/drivers/gpu/drm/i915/gvt/scheduler.c index 9f3fd7d96a69..75baff657e43 100644 --- a/drivers/gpu/drm/i915/gvt/scheduler.c +++ b/drivers/gpu/drm/i915/gvt/scheduler.c @@ -1528,9 +1528,9 @@ intel_vgpu_create_workload(struct intel_vgpu *vgpu, int ring_id, if (!intel_gvt_ggtt_validate_range(vgpu, workload->wa_ctx.indirect_ctx.guest_gma, workload->wa_ctx.indirect_ctx.size)) { - kmem_cache_free(s->workloads, workload); gvt_vgpu_err("invalid wa_ctx at: 0x%lx\n", workload->wa_ctx.indirect_ctx.guest_gma); + kmem_cache_free(s->workloads, workload); return ERR_PTR(-EINVAL); } } @@ -1542,9 +1542,9 @@ intel_vgpu_create_workload(struct intel_vgpu *vgpu, int ring_id, if (!intel_gvt_ggtt_validate_range(vgpu, workload->wa_ctx.per_ctx.guest_gma, CACHELINE_BYTES)) { - kmem_cache_free(s->workloads, workload); gvt_vgpu_err("invalid per_ctx at: 0x%lx\n", workload->wa_ctx.per_ctx.guest_gma); + kmem_cache_free(s->workloads, workload); return ERR_PTR(-EINVAL); } } |