mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-29 18:18:54 +00:00
core: don't dereference null pointer
This commit is contained in:
parent
9cdf062ee6
commit
96ef2b24c7
@ -163,6 +163,9 @@ class Context_area_ram_session : public Ram_session
|
||||
Dataspace_component *dataspace_component =
|
||||
dynamic_cast<Dataspace_component*>(Dataspace_capability::deref(ds));
|
||||
|
||||
if (!dataspace_component)
|
||||
return;
|
||||
|
||||
for (unsigned i = 0; i < MAX_CORE_CONTEXTS; i++)
|
||||
if (context_ds[i] == dataspace_component) {
|
||||
context_ds[i] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user