anv: fix possible stack corruption
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 2 May 2017 16:26:17 +0000 (19:26 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 9 May 2017 22:13:44 +0000 (01:13 +0300)
commite0aee8b667955675e2e6c647a88048b64bc2796e
treecac7b49590e45904b326aa792aa9c0d182dff2b6
parent037ce253b17e9133bec166283c4764d42915e05f
anv: fix possible stack corruption

drmGetDevices2 takes count and not size. Probably hasn't caused problems
yet in practice and was missed as setups with more than 8 DRM devices
are not very common.

Fixes: b1fb6e8d "anv: do not open random render node(s)"
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_device.c