drm/i915/query: fix subslice length
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 9 Nov 2018 00:40:13 +0000 (16:40 -0800)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 9 Nov 2018 19:42:00 +0000 (11:42 -0800)
commiteef4670eadcfcf4bc444be89d8a1fb1ad3c8dc4d
tree64cd727a9592f24ceb805d2b1c4a85c8f9a392c0
parentcf303a41d97e3fd5c70c5d8a61a11ce7db7e559f
drm/i915/query: fix subslice length

We dump the info as an array of u8, so we want to know the length
in number of bytes. Current code is still safe because the
variable we use BITS_PER_TYPE on is a u8.

Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181109004013.34394-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/i915_query.c