From ee096c09818baf60ef2f8bafc421171ceadd8e18 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 1 Aug 2010 12:42:23 +0200 Subject: 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. --- libpager/data-request.c | 4 +--- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3