mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-13 14:32:57 -04:00
render/allocator: handle ENODEV
This commit is contained in:
parent
78506465bc
commit
46c73187b9
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ static int reopen_drm_node(int drm_fd, bool allow_render_node) {
|
|||
int lease_fd = drmModeCreateLease(drm_fd, NULL, 0, O_CLOEXEC, &lessee_id);
|
||||
if (lease_fd >= 0) {
|
||||
return lease_fd;
|
||||
} else if (lease_fd != -EINVAL && lease_fd != -EOPNOTSUPP) {
|
||||
} else if (lease_fd != -EINVAL && lease_fd != -EOPNOTSUPP && lease_fd != -ENODEV) {
|
||||
wlr_log_errno(WLR_ERROR, "drmModeCreateLease failed");
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue