libdrm/lima: handle unknown buffer ids gracefully

Issue .
This commit is contained in:
Josef Söntgen 2022-12-20 17:35:47 +00:00 committed by Christian Helmuth
parent 46fc41ba50
commit 66fedecf34

@ -452,10 +452,12 @@ class Lima::Call
Buffer_id const id { .value = handle };
bool found = false;
_buffer_space.apply<Buffer>(id, [&] (Buffer &b) {
fn(b);
found = true;
});
try {
_buffer_space.apply<Buffer>(id, [&] (Buffer &b) {
fn(b);
found = true;
});
} catch (Genode::Id_space<Buffer>::Unknown_id) { }
return found;
}