[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 06/11] libports: improve error handling in ports_transfer_rig
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 06/11] libports: improve error handling in ports_transfer_right |
Date: |
Wed, 27 Nov 2013 22:45:55 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Wed 27 Nov 2013 13:31:13 +0100, a écrit :
> * libports/transfer-right.c (ports_transfer_right): Improve error handling.
Ditto, ack.
> ---
> libports/transfer-right.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/libports/transfer-right.c b/libports/transfer-right.c
> index e313f71..72488a9 100644
> --- a/libports/transfer-right.c
> +++ b/libports/transfer-right.c
> @@ -77,7 +77,8 @@ ports_transfer_right (void *tostruct,
>
> if (port)
> {
> - hurd_ihash_add (&topi->bucket->htable, port, topi);
> + err = hurd_ihash_add (&topi->bucket->htable, port, topi);
> + assert_perror (err);
> if (topi->bucket != frompi->bucket)
> {
> err = mach_port_move_member (mach_task_self (), port,
> --
> 1.7.10.4
>
--
Samuel
<N> (* If you have a precise idea of the intended use of the following code,
please
<N> write to Eduardo.Gimenez@inria.fr and ask for the prize :-)
<N> -- Eduardo (11/8/97) *)
-+- N sur #ens-mim - et c'était un des développeurs -+-
- [PATCH 01/11] libshouldbeinlibc: fix minor port leak in maptime_map, Justus Winter, 2013/11/27
- [PATCH 03/11] proc: update comments, Justus Winter, 2013/11/27
- [PATCH 04/11] libports: improve error handling in ports_reallocate_port, Justus Winter, 2013/11/27
- [PATCH 02/11] init: fix port leak, Justus Winter, 2013/11/27
- [PATCH 05/11] libports: improve error handling in ports_reallocate_from_external, Justus Winter, 2013/11/27
- [PATCH 06/11] libports: improve error handling in ports_transfer_right, Justus Winter, 2013/11/27
- Re: [PATCH 06/11] libports: improve error handling in ports_transfer_right,
Samuel Thibault <=
- [PATCH 07/11] libdiskfs: improve error reporting in diskfs_start_disk_pager, Justus Winter, 2013/11/27
- [PATCH 10/11] proc: store the privileged host port in _hurd_host_priv, Justus Winter, 2013/11/27
- [PATCH 09/11] libports: improve error reporting in adjust_priority, Justus Winter, 2013/11/27
- [PATCH 08/11] libfshelp: improve error handling in fshelp_start_translator_long, Justus Winter, 2013/11/27