eglfs: Use drmClose in drm/EGLDevice backend

Fixes: QTBUG-90350
Change-Id: I29a71e4abc2df7b777a895792bc5385a89223895
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
(cherry picked from commit 957344123672e891a25e55b54dcb012d2017b27a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Laszlo Agocs 2021-01-15 16:04:31 +01:00 committed by Qt Cherry-pick Bot
parent b4937f3295
commit 78735236f3

View File

@ -71,7 +71,7 @@ void QEglFSKmsEglDevice::close()
{
// Note: screens are gone at this stage.
if (qt_safe_close(fd()) == -1)
if (drmClose(fd()) == -1)
qErrnoWarning("Could not close DRM (NV) device");
setFd(-1);