diff options
author | 2017-04-13 22:48:28 +0300 | |
---|---|---|
committer | 2017-04-18 17:50:05 +0800 | |
commit | c821ee6d2bb4cfc9991bf285f53103cde9d3593a (patch) | |
tree | 6cbf86111841e1a988f5789dce28ebd2ebb70998 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/i915/gvt: Fix PTE write flush for taking runtime pm properly (diff) | |
download | linux-dev-c821ee6d2bb4cfc9991bf285f53103cde9d3593a.tar.xz linux-dev-c821ee6d2bb4cfc9991bf285f53103cde9d3593a.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions