diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-08-01 12:42:23 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-08-01 12:42:23 +0200 |
commit | ee096c09818baf60ef2f8bafc421171ceadd8e18 (patch) | |
tree | 70f087f2d876e5f4b344907e5d26ee2cf7f55087 | |
parent | 05b2f1f650af3b2e41c79d96bed67f9af0d4ef9d (diff) |
Simplify error exit path
* libpager/data-request.c (_pager_seqnos_memory_object_data_request):
Use allow_release_out label instead of re-doing unlocks by hand.
-rw-r--r-- | libpager/data-request.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libpager/data-request.c b/libpager/data-request.c index 2bd80b9e..2fd5bfa7 100644 --- a/libpager/data-request.c +++ b/libpager/data-request.c @@ -67,9 +67,7 @@ _pager_seqnos_memory_object_data_request (mach_port_t object, if (p->pager_state != NORMAL) { printf ("pager in wrong state for read\n"); - _pager_release_seqno (p, seqno); - mutex_unlock (&p->interlock); - goto allow_term_out; + goto allow_release_out; } err = _pager_pagemap_resize (p, offset + length); |