Dan Carpenter c821ee6d2b drm/i915/gvt: fix a bounds check in ring_id_to_context_switch_event()
There are two bugs here.  The && should be || and the > is off by one so
it should be >= ARRAY_SIZE().

Fixes: 8453d674ae7e ("drm/i915/gvt: vGPU execlist virtualization")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2017-04-18 17:50:05 +08:00
..
2017-03-30 13:34:07 +08:00
2017-03-30 13:34:07 +08:00
2016-10-14 18:15:25 +08:00
2016-10-14 18:15:13 +08:00
2016-10-14 18:12:11 +08:00
2016-10-14 18:15:25 +08:00
2017-03-30 13:34:07 +08:00