radv: fix possible stack corruption
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 2 May 2017 16:41:13 +0000 (19:41 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 3 May 2017 19:02:45 +0000 (22:02 +0300)
commit898cbb491b3c02697f006d175d5689893bdf929b
tree5bfc4d8edc9f37941aeca4eb1397c7abd72380a1
parentb08715499e61161b8dc070f125c5c2dc68e9afe7
radv: 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: 743315f2 "radv: do not open random render node(s)"
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c