Revert "xf86drm: cap number of reported devices by drmGetDevice(2)"
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 11 Feb 2021 21:38:31 +0000 (21:38 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 26 Feb 2021 13:02:56 +0000 (13:02 +0000)
commit06844b6eaefb03c65d9b84a5b8503449ed275bc8
treeb4532dbea12491c5d090f52959c8e5b7066dc3a3
parent632f59fcbfc790a7546ceeac30c480b66901404c
Revert "xf86drm: cap number of reported devices by drmGetDevice(2)"

This reverts commit 8cb12a2528d795c45bba5f03b3486b4040fb0f45.

The commit fixed the OOB, yet it broke drmDevices2(0, NULL, 0) - aka we
did not return the total devices list.

Reviewed-by: Simon Ser <contact@emersion.fr>
xf86drm.c