Fix crash on monitor index not found in KMS
This commit is contained in:
parent
cf416f55e1
commit
f70c3f1c0e
1 changed files with 3 additions and 5 deletions
|
|
@ -727,13 +727,11 @@ namespace platf {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_LOG(error) << "Couldn't find monitor ["sv << monitor_index << ']';
|
||||||
|
return -1;
|
||||||
|
|
||||||
// Neatly break from nested for loop
|
// Neatly break from nested for loop
|
||||||
break_loop:
|
break_loop:
|
||||||
if (monitor != monitor_index) {
|
|
||||||
BOOST_LOG(error) << "Couldn't find monitor ["sv << monitor_index << ']';
|
|
||||||
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Look for the cursor plane for this CRTC
|
// Look for the cursor plane for this CRTC
|
||||||
cursor_plane_id = -1;
|
cursor_plane_id = -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue