]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftest: Make sure to init i915_ggtt_view in igt_vma_rotate_remap()
authorImre Deak <imre.deak@intel.com>
Thu, 25 Mar 2021 21:47:48 +0000 (23:47 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 29 Mar 2021 19:54:50 +0000 (22:54 +0300)
commitfdc24e8cb90c2cc8c05174393fdb4b7ecd942e51
tree95e9c81590c46b794ba9a8bb9ba85e6642ee7743
parent545ca72d5e0ae0d20c2634a7c939dd30223ec6b9
drm/i915/selftest: Make sure to init i915_ggtt_view in igt_vma_rotate_remap()

This probably doesn't cause an issue, since the code checks the view
type dependent size of the views before comparing them, but let's follow
the practice to bzero the whole struct when initializing it.

v2: Use {} instead of { } struct intializer. (Ville)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210325214808.2071517-6-imre.deak@intel.com
drivers/gpu/drm/i915/selftests/i915_vma.c