]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915/gvt: Off by one in intel_vgpu_write_fence()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 7 Aug 2018 06:46:02 +0000 (09:46 +0300)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 14 Aug 2018 07:26:59 +0000 (15:26 +0800)
commit4b25e737cfc7f2ade956df3c747a7dd2ff1e2774
tree4752eb98ea45e68a57cde8847d6cf38617525b78
parentde5372da605d3bca46e3102bab51b7e1c0e0a6f6
drm/i915/gvt: Off by one in intel_vgpu_write_fence()

The > should be >= here so that we don't read one element beyond the
end of the array.

Fixes: 28a60dee2ce6 ("drm/i915/gvt: vGPU HW resource management")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/aperture_gm.c