commit | 7513edbc096a006f967eaf39088091442e623b83 | [log] [tgz] |
---|---|---|
author | Chris Wilson <chris@chris-wilson.co.uk> | Tue Nov 20 20:24:38 2018 +0000 |
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | Wed Nov 21 17:31:56 2018 +0800 |
tree | 71b5cb3bbd66642d967cfc6730467246aa45ba5e | |
parent | f3be657d96b0709c832b165501170f072882df3c [diff] |
drm/i915/gvt: Avoid use-after-free iterating the gtt list Found by smatch: drivers/gpu/drm/i915/gvt/gtt.c:2452 intel_vgpu_destroy_ggtt_mm() error: dereferencing freed memory 'pos' Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Zhenyu Wang <zhenyuw@linux.intel.com> Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>