mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-19 11:16:57 +00:00
Don't loop forever if upgrade of a donation failed.
The code intended to stop after the first failed attempt, however the bool variable to control this was reseted inside the loop and so it endless loops. Fixes #51
This commit is contained in:
parent
33a2f54413
commit
9e582c59a9
@ -49,9 +49,8 @@ namespace Genode {
|
|||||||
Local_addr local_addr = (addr_t)0,
|
Local_addr local_addr = (addr_t)0,
|
||||||
bool executable = false) {
|
bool executable = false) {
|
||||||
|
|
||||||
bool try_again;
|
bool try_again = false;
|
||||||
do {
|
do {
|
||||||
try_again = false;
|
|
||||||
try {
|
try {
|
||||||
return Rm_session_client::attach(ds, size, offset,
|
return Rm_session_client::attach(ds, size, offset,
|
||||||
use_local_addr,
|
use_local_addr,
|
||||||
@ -84,9 +83,8 @@ namespace Genode {
|
|||||||
: Ram_session_client(cap), _cap(cap) { }
|
: Ram_session_client(cap), _cap(cap) { }
|
||||||
|
|
||||||
Ram_dataspace_capability alloc(size_t size, bool cached) {
|
Ram_dataspace_capability alloc(size_t size, bool cached) {
|
||||||
bool try_again;
|
bool try_again = false;
|
||||||
do {
|
do {
|
||||||
try_again = false;
|
|
||||||
try {
|
try {
|
||||||
return Ram_session_client::alloc(size, cached);
|
return Ram_session_client::alloc(size, cached);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user