mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-15 14:33:01 -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);
|
int lease_fd = drmModeCreateLease(drm_fd, NULL, 0, O_CLOEXEC, &lessee_id);
|
||||||
if (lease_fd >= 0) {
|
if (lease_fd >= 0) {
|
||||||
return lease_fd;
|
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");
|
wlr_log_errno(WLR_ERROR, "drmModeCreateLease failed");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue