Fix crash on monitor index not found in KMS
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user