Re: [Mesa-dev] [PATCH] radv: fix possible stack corruption

2017-05-02 Thread Bas Nieuwenhuizen
Some defensive programming can't hurt. Reviewed-by: Bas Nieuwenhuizen On Tue, May 2, 2017 at 7:17 PM, Grazvydas Ignotas wrote: > 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

[Mesa-dev] [PATCH] radv: fix possible stack corruption

2017-05-02 Thread Grazvydas Ignotas
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 --- src/amd/vulkan/radv_device.c | 2 +-