[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 81/87: Fix unlocking translator list
From: |
Samuel Thibault |
Subject: |
[hurd] 81/87: Fix unlocking translator list |
Date: |
Sun, 09 Nov 2014 11:05:06 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 4370c33bccc2ef5bddacbd364270aa310f89c94d
Author: Samuel Thibault <address@hidden>
Date: Sun Nov 2 23:06:56 2014 +0100
Fix unlocking translator list
* libfshelp/translator-list.c (fshelp_set_active_translator): Use common
out path to unlock translator_ihash_lock before exitting on error.
---
libfshelp/translator-list.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/libfshelp/translator-list.c b/libfshelp/translator-list.c
index be7ce4d..c87bbaa 100644
--- a/libfshelp/translator-list.c
+++ b/libfshelp/translator-list.c
@@ -82,7 +82,10 @@ fshelp_set_active_translator (struct port_info *pi,
t = malloc (sizeof (struct translator));
if (! t)
- return ENOMEM;
+ {
+ err = errno;
+ goto out;
+ }
t->active = MACH_PORT_NULL;
t->pi = NULL;
@@ -110,7 +113,7 @@ fshelp_set_active_translator (struct port_info *pi,
MACH_MSG_TYPE_MAKE_SEND_ONCE,
&old);
if (err)
- return err;
+ goto out;
if (old != MACH_PORT_NULL)
mach_port_deallocate (mach_task_self (), old);
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 83/87: Use a mere weak attribute instead of a weak alias, (continued)
- [hurd] 83/87: Use a mere weak attribute instead of a weak alias, Samuel Thibault, 2014/11/09
- [hurd] 17/87: include: use unsigned literal in combination with binary not, Samuel Thibault, 2014/11/09
- [hurd] 79/87: Fix proc_getprocinfo calls, Samuel Thibault, 2014/11/09
- [hurd] 20/87: libdiskfs: avoid implicit integer conversion, Samuel Thibault, 2014/11/09
- [hurd] 67/87: procfs: implement /proc/N/maps, Samuel Thibault, 2014/11/09
- [hurd] 69/87: procfs: do not test whether /hurd/mtab exists, Samuel Thibault, 2014/11/09
- [hurd] 16/87: libnetfs: fix memory leak, Samuel Thibault, 2014/11/09
- [hurd] 13/87: Fix buffer allocation on io_read, Samuel Thibault, 2014/11/09
- [hurd] 77/87: pfinet: fix path in comment, Samuel Thibault, 2014/11/09
- [hurd] 76/87: libports: lock-less reference counting for port_info objects, Samuel Thibault, 2014/11/09
- [hurd] 81/87: Fix unlocking translator list,
Samuel Thibault <=
- [hurd] 63/87: Update NEWS file, Samuel Thibault, 2014/11/09
- [hurd] 09/87: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd, Samuel Thibault, 2014/11/09
- [hurd] 85/87: mach-defpager: use protected payloads for object lookups, Samuel Thibault, 2014/11/09
- [hurd] 87/87: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2014/11/09
- [hurd] 12/87: build: Remove checks for 'getgrouplist' and 'uselocale'., Samuel Thibault, 2014/11/09
- [hurd] 10/87: libstore: provide function declaration until available upstream, Samuel Thibault, 2014/11/09
- [hurd] 01/87: Do not include the terminating zero in /proc/slabinfo, Samuel Thibault, 2014/11/09
- [hurd] 06/87: libdiskfs: remove the statistics code from the name cache, Samuel Thibault, 2014/11/09
- [hurd] 84/87: Fix optional definitions in static binaries, Samuel Thibault, 2014/11/09
- [hurd] 03/87: libnetfs: add netfs_make_node_alloc to allocate fat nodes, Samuel Thibault, 2014/11/09