diff options
author | 2018-01-08 10:37:34 -0800 | |
---|---|---|
committer | 2018-02-01 07:31:07 -0800 | |
commit | 8466169ab9fe9f0c3412881116aca895feea6e70 (patch) | |
tree | fd1a8746dd5f8731ddb1361d01003cbcbf39a2b3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/i915/gvt: validate gfn before set shadow page entry (diff) | |
download | linux-dev-8466169ab9fe9f0c3412881116aca895feea6e70.tar.xz linux-dev-8466169ab9fe9f0c3412881116aca895feea6e70.zip |
drm/i915/gvt: Do not use I915_NUM_ENGINES to iterate over the mocs regs array
The mocs reg array is defined locally but then we iterate over its
elements using I915_NUM_ENGINES. There is no 'hard' connection between
I915_NUM_ENGINES and the regs array and there will be problems if either
of them increases.
Use the size of the mocs reg array instead to safely iterate over it.
Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Cc: Weinan Li <weinan.z.li@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions