mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
platform_drv: fix reference count in "Switch" class
Only decrement by 1 in the "unuse" function.
This commit is contained in:
parent
4b9fb10fdb
commit
0370b0fa23
@ -58,7 +58,7 @@ namespace Driver {
|
||||
|
||||
_count--;
|
||||
|
||||
if (--_count == 0)
|
||||
if (_count == 0)
|
||||
(_dev.*_deactivate)();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user